dynamic-cli
dynamic-cli copied to clipboard
Copy button in the terminal #177
Related Issue
The Issue was to create a button to Copy the code snipped straight into the clipboard of the computer
Closes: #177
Describe the changes you've made
To create a copy method I used the pyperclip library from python The part of selecting the text to copy was a bit complex so I had to make up an elaborate method to do so. The method I used works on all types of code, keeping the indentation constant aswell, for both spaces and tabs
Note : I also added a requirement to the requirement.txt
Checklist:
- [x] My code follows the style guidelines of this project.
- [x] I have performed a self-review of my own code.
- [x] I have commented my code, particularly in hard-to-understand areas.
- [x] I have made corresponding changes to the documentation.
- [x] My changes generate no new warnings.
Screenshots
Original | Updated |
---|---|
![]() |
![]() |
Hey @GouravSardana do review it please
@Aspireve can you please fix above warnings? These are from code scanner. You can use any plugin for pep8 and reformat the file and it’ll work
Yup Sure, give me a minute
Aye there are a lot of errors, it'll take time, I'll solve it as soon as possible.