Git Product home page Git Product logo

Comments (37)

Rajarshi1001 avatar Rajarshi1001 commented on August 9, 2024

@GouravSardana Can I take up this issue?

from dynamic-cli.

lainq avatar lainq commented on August 9, 2024

Sure!

from dynamic-cli.

Rajarshi1001 avatar Rajarshi1001 commented on August 9, 2024

@pranavbaburaj Should I copy only the Question to the clipboard or the entire Question Link?
I also wanted to say that if I have to use an additional python library to implement this feature, how should I modify the pyproject.toml file since it contains all the preset dependencies?

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

@Rajarshi1001 you don’t need to copy the question. You have to copy the code snippet which is available in the answers

please avoid using dependencies, try to create it

from dynamic-cli.

Rajarshi1001 avatar Rajarshi1001 commented on August 9, 2024

SInce in the above issue it was mentioned that I need to copy the terminal text to the clipboard, I thought it to be the questions that pop up for a specific topic and I have already implemented that feature to copy the question link?
There might be several code-snippets for a specific question or there may not be any code-snippets at all so how can I copy the most relevant one?

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

You don’t need to copy everything. We should have a button or something similar to copy the code from snippets. User can choose the snippet to copy

for copying the question- Why user wants to copy the question? To see the question in the browser, just hit enter and it’ll redirect

from dynamic-cli.

Rajarshi1001 avatar Rajarshi1001 commented on August 9, 2024

I guess it is difficult to create a button which is rendered in the terminal using python. I have searched for various resources for reference but nothing seems to work.

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

Not exactly a button but something from where we can copy the snippet
If you see in the terminal, we can able to differentiate between text and snippets. So using the same thing you have to copy it to clipboard

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

Anybody working on this? Should i make this as open?

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

hey @GouravSardana, I would like to work on this issue and could you please assign me? Also, I would like to get some info on how can I add this in the code part? Are there any references that I can look into? I would love the help! Thanks

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

@Aspireve Thanks for showing interest in contributing to dynamic cli.

I’ll tell where you can add this code and how:

first install dynamic cli in your local and try to run “dynamic -s” enter anything like python and skip tags because those are options.
You’ll see some results and you can toggle between these by up arrow and down arrow from your keyboard. Just look for any answers contains the code. You’ll see we differentiate the code in the black color. You have to see the code, how we’re differentiate the code and the text that where you have to add your changes. Either add a text button or something which user can easily recognise to copy.

let me know if you need any more information.

looping @pranavbaburaj

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hi!! This is actually my first time ever doing something like this so it might take me a bit longer to understand it.

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

No issues. If you need any help just put all your questions here

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hi @GouravSardana!! I actually tried a few things to from creating a button to something to copy stuff from the terminal but nothing really seems to work.

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

Did you tried copying it to clipboard? You don’t actually need a button just see how we are differentiating between normal text and code.

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hi @GouravSardana I was able to find a way to solve it. Soon Ill create a pull request

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

Damn 🤞Awesome, Looking forward to review

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Aye I completely forgot to do it, got caught up in a lot of stuff. Will do it soon!!

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

@Aspireve No issues. Looking forward :)

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hey @GouravSardana, I tried doing it again as I don't have the older file but when I run it it gives me this error
ImportError: cannot import name 'MarkdownRenderer' from 'markdown' (/usr/lib/python3/dist-packages/markdown/__init__.py)
It had worked out the last time when I tried it

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

I tried pip3 install markdown and it shows
Requirement already satisfied: markdown in /usr/lib/python3/dist-packages (3.1.1)

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

So I was able to overcome it by commenting out the import MarkdownRenderer for now, hope its fine

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

May be version issue. Can you install markdown from the requirements? So that it’ll install the correct version

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hey @GouravSardana I finally got it to run, Thanks!!

Also I had two ways of copying code, one could be by

  • pressing any button like when you press 'p' it saves to playbook so maybe when you press 'c' it copies text
  • The second method is putting text on screen which if you press it copies text

The pressing button seems a bit more better as it stays consistent with the ret of the program but the press-text-to-copy method seems more intuitive
Which method should I use?

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hey @GouravSardana Could You explain how do you differentiate between the code and the answer?

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Yay @GouravSardana I found a way to do it with the keyboard button 'c', Ill refine the code a bit and PR it
How's this?

Untitled-1 - dynamic-cli - Visual Studio Code 2022-07-30 15-46-14

from dynamic-cli.

Aspireve avatar Aspireve commented on August 9, 2024

Hey @GouravSardana I made a pull request. Do review it and tell me if anything else needs to be added

from dynamic-cli.

gkprasanth avatar gkprasanth commented on August 9, 2024

@GouravSardana
Hey, I know a little bit about Python, but I've never given back to an open source project. Are you sure I can help with this problem?
This concept definitely caught my attention.

from dynamic-cli.

GouravSardana avatar GouravSardana commented on August 9, 2024

@gkprasanth Hey,
Yes this is a beginner friendly project. If you think you can contribute, please go ahead and read the readme instructions and let me know if that’s unclear or need more work.

from dynamic-cli.

gkprasanth avatar gkprasanth commented on August 9, 2024

@GouravSardana
I would love to contribute to this project.
I want to know how much knowledge of Python do I need to know to contribute?

from dynamic-cli.

Nit89 avatar Nit89 commented on August 9, 2024

i want to contribute in this project

from dynamic-cli.

NIveX2169 avatar NIveX2169 commented on August 9, 2024

Hey I'm New to Open source contribution as a GSSOC 2023 I want to contribute to this issue Please assign it to me

from dynamic-cli.

A15h avatar A15h commented on August 9, 2024

hi @GouravSardana
I would really like to work on this issue and add a copy button in the terminal. Please assign this issue to me. I am a contributor of GSSOC'23.

from dynamic-cli.

harshsingh32 avatar harshsingh32 commented on August 9, 2024

I would like to work on this issue, please assign this issue to me under GSSoC'23.

from dynamic-cli.

IIAbinashMishraII avatar IIAbinashMishraII commented on August 9, 2024

Hi, @GouravSardana, Is it possible for you to assign it to me? I have already figured out how to create a copy to clipboard button. Thank you.

from dynamic-cli.

Pranav-Rayaprolu avatar Pranav-Rayaprolu commented on August 9, 2024

hey i would like to work on the issue

from dynamic-cli.

Abhinavcode13 avatar Abhinavcode13 commented on August 9, 2024

Assign this issue to me @GouravSardana !!

from dynamic-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.