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

refactor: rename pasteUrl to be more semantically correct #3

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

pkazmier
Copy link
Contributor

@pkazmier pkazmier commented Sep 15, 2024

Small stuff, just wanted to contribute back in some way.

This commit refactors pasteUrl to make it more generic and eliminates the confusion with the name of the function (paste implies pasting versus copying). Plus, who knows what else you might want to copy to the clipboard as part of some future action? Also, renamed copyUrlToClipboard to be eliminate confusion about copying the current URL versus copying a URL selected via a mark.

This commit refactors pasteUrl to make it more generic and eliminates
the confusion with the name of the function (paste implies pasting
versus copying). Plus, who knows what else you might want to copy to the
clipboard as part of some future action?

Also, renamed copyUrlToClipboard to be more specific about the current
URL to avoid confusion about copying a URL selected via a mark.
@dzirtusss
Copy link
Owner

@pkazmier thank you

overall, it was all very quick done for personal use mostly

plus there are some changes coming, which may be a 0.1 version something - mostly a better logic compartmentalization to proper modules and bindings rewrite, so they will be not hardcoded in code like now anymore, thus easily configurable

@dzirtusss dzirtusss merged commit 5d369f2 into dzirtusss:main Sep 25, 2024
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.

2 participants