Comments (37)
@GouravSardana Can I take up this issue?
from dynamic-cli.
Sure!
from dynamic-cli.
@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.
@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.
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.
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.
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.
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.
Anybody working on this? Should i make this as open?
from dynamic-cli.
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.
@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.
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.
No issues. If you need any help just put all your questions here
from dynamic-cli.
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.
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.
Hi @GouravSardana I was able to find a way to solve it. Soon Ill create a pull request
from dynamic-cli.
Damn 🤞Awesome, Looking forward to review
from dynamic-cli.
Aye I completely forgot to do it, got caught up in a lot of stuff. Will do it soon!!
from dynamic-cli.
@Aspireve No issues. Looking forward :)
from dynamic-cli.
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.
I tried pip3 install markdown
and it shows
Requirement already satisfied: markdown in /usr/lib/python3/dist-packages (3.1.1)
from dynamic-cli.
So I was able to overcome it by commenting out the import MarkdownRenderer for now, hope its fine
from dynamic-cli.
May be version issue. Can you install markdown from the requirements? So that it’ll install the correct version
from dynamic-cli.
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.
Hey @GouravSardana Could You explain how do you differentiate between the code and the answer?
from dynamic-cli.
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?
from dynamic-cli.
Hey @GouravSardana I made a pull request. Do review it and tell me if anything else needs to be added
from dynamic-cli.
@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.
@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.
@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.
i want to contribute in this project
from dynamic-cli.
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.
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.
I would like to work on this issue, please assign this issue to me under GSSoC'23.
from dynamic-cli.
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.
hey i would like to work on the issue
from dynamic-cli.
Assign this issue to me @GouravSardana !!
from dynamic-cli.
Related Issues (20)
- Add new GIFS for DynamicCLI readme HOT 9
- Test Cases - Write Unit test for our GET API feature HOT 3
- Test Cases - Write Unit test for our POST API feature HOT 4
- Add Poetry for dependency management HOT 10
- Add MakeFile to ease development process HOT 11
- docs: correct "`-V`" to "`-v`" in the `-st`/`--start` flag message and update version from "`0.1.0`" to "`1.1.0`" HOT 4
- $ signs are getting copied while copying commands from readme HOT 7
- Update README: How to run unit test? HOT 1
- Unable to run Dynamic-CLI using terminal [Using Source Code] HOT 6
- Switch from `argparse` to Typer HOT 6
- Replace HTML escape codes with corresponding ASCII character HOT 12
- Want to make a casino game using python HOT 12
- Improve contributing.md HOT 7
- Incorporating a logging library HOT 3
- Add pre-commit config (black, flake8, isort) HOT 1
- [Fix] Addition in issue template HOT 3
- Changes to window_setup.md HOT 1
- Proper documentation of the already existing set up libraries and modules HOT 3
- Add the pylint linter workflow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic-cli.