Skip to content

Add feature to copy to clipboard #2

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

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

cljoly
Copy link
Contributor

@cljoly cljoly commented Aug 17, 2022

  • refactor: early exit on error
  • fix: spaces, global variable, variable name
  • feat: add the ability to pass options to copy to clipboard

cljoly added 3 commits August 18, 2022 00:07
This makes the control flow easier to follow IMO.
This removes end of line spaces, a global variable (the `local` was
likely forgotten) and rename a variable for clarity and to avoid a
double `not`.
This preserves the previous behavior, where calling
```
:lua require"nvim-git-link".get_remote_link()
```
opens the web browser. See the changes made to the README for usage of
the new option.
@jltwheeler
Copy link
Owner

lgtm!

@jltwheeler jltwheeler merged commit 65d2ef1 into jltwheeler:main Aug 18, 2022
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