Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy button in the terminal #177 #186

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Aspireve
Copy link

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:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.

Screenshots

Original Updated
image image

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉Congratulations!!🎉 for making your first PR , our mentors will review it soon.

dynamic/utility.py Fixed Show fixed Hide fixed
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 17 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 11 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 15 potential problems in the proposed changes. Check the Files changed tab for more details.

dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
dynamic/utility.py Fixed Show fixed Hide fixed
@Aspireve
Copy link
Author

Hey @GouravSardana do review it please

@GouravSardana
Copy link
Member

@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

@Aspireve
Copy link
Author

Aspireve commented Aug 1, 2022

Yup Sure, give me a minute

@sonarcloud
Copy link

sonarcloud bot commented Aug 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 11 potential problems in the proposed changes. Check the Files changed tab for more details.

break
i += 1
if flag:

Check notice

Code scanning

Trailing whitespace

Trailing whitespace
@Aspireve
Copy link
Author

Aspireve commented Aug 1, 2022

Aye there are a lot of errors, it'll take time, I'll solve it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy button in the terminal
2 participants