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

feat: copy issue key to clipboard #88

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

Conversation

yvesjans
Copy link

I often have to copy the Jira issue key to the clipboard (create new branch, commit message, ...)
This PR adds this functionality

@mk-5
Copy link
Owner

mk-5 commented Oct 31, 2023

@yvesjans pls check Tests pipeline. (Goreleaser check will fail, don't worry about it)

2023/10/31 08:13:51 No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set.
FAIL	github.com/mk-5/fjira/internal/app	0.825s

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (776349a) 79.22% compared to head (d2bb5c0) 79.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   79.22%   79.00%   -0.22%     
==========================================
  Files          65       67       +2     
  Lines        3181     3205      +24     
==========================================
+ Hits         2520     2532      +12     
- Misses        514      525      +11     
- Partials      147      148       +1     
Files Coverage Δ
internal/ui/navigation.go 93.91% <ø> (ø)
internal/app/copy_issue.go 40.00% <40.00%> (ø)
internal/issues/copy.go 0.00% <0.00%> (ø)
internal/issues/issue.go 82.73% <0.00%> (-2.46%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -41,6 +41,7 @@ var (
ui.NavItemConfig{Action: ui.ActionComment, Text1: ui.MessageComment, Text2: "[c]", Rune: 'c'},
ui.NavItemConfig{Action: ui.ActionAddLabel, Text1: ui.MessageLabel, Text2: "[l]", Rune: 'l'},
ui.NavItemConfig{Action: ui.ActionOpen, Text1: ui.MessageOpen, Text2: "[o]", Rune: 'o'},
ui.NavItemConfig{Action: ui.ActionCopyIssue, Text1: ui.MessageCopyIssue, Text2: "[y]", Rune: 'y'},
Copy link
Owner

Choose a reason for hiding this comment

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

mhmm, wouldn't Key: tcell.KeyCtrlC be more intuitive here? 🤔 what do you think?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry lost sight of this...
I choose y (from Vim yank) as Ctrl+C exits the program...
Happy to take any other suggestions

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.

None yet

2 participants