Skip to content

Add feature to copy to clipboard#2

Merged
jltwheeler merged 3 commits into
jltwheeler:mainfrom
cljoly:copy
Aug 18, 2022
Merged

Add feature to copy to clipboard#2
jltwheeler merged 3 commits into
jltwheeler:mainfrom
cljoly:copy

Conversation

@cljoly

@cljoly cljoly commented Aug 17, 2022

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
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