Skip to content

Copy issue Key to clipboard (work mainly from yvesjans)#144

Open
kalidor wants to merge 1 commit intomk-5:masterfrom
kalidor:copy_issue_key_to_clipboard
Open

Copy issue Key to clipboard (work mainly from yvesjans)#144
kalidor wants to merge 1 commit intomk-5:masterfrom
kalidor:copy_issue_key_to_clipboard

Conversation

@kalidor
Copy link

@kalidor kalidor commented Feb 8, 2026

Hi, since i need this feature and the maintainer (yvesjans) of the previous PR #88 don't use jira anymore and indicates PR can be take over, i took the liberty to take it (and rework it a bit) to be able to copy the Issue id from board's view and issue's view.
The y seems a good idea (i'm a vim <3) and Ctrl-C interrupt the program. If you want to change this, i'm open to it.

os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install xsel
Copy link
Owner

Choose a reason for hiding this comment

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

what's the purpose of that xsel lib? :)

Copy link
Author

Choose a reason for hiding this comment

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

sorry, i just copied/pasted modification on this file, i'll revert this and keep original one.

})
return
case ui.ActionCopyIssueId:
view.issue.CopyId()
Copy link
Owner

Choose a reason for hiding this comment

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

let us show some "feedback" to the user just after copy - I think that:

flash.Success(ui.MessageIssueIdCopiedToClipboard) - text could be: "Issue id has been copied to clipboard!"

should be sufficient :)

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.ActionCopyIssueId, Text1: ui.MessageCopyIssueId, 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.

I generally fine with the idea - I got the problem that it would be nice to have such a functionality implemented.

Let me put another idea into discussion - what do you think:

Maybe we can implement a handler for "Ctrl+y"? or "Ctrl+i"? (i like issue?) "Ctrl + t" (t like ticket?). I don't know if "copy to clipboard" should be a part of a toolbar 🤔

Copy link
Author

@kalidor kalidor Feb 27, 2026

Choose a reason for hiding this comment

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

oh i see. i agree "copy to clipboard" in a toolbar seems weird. do you any suggestion to implement this handler ?

Copy link
Author

Choose a reason for hiding this comment

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

nevermind, find a way to do so in func (b *boardView) HandleKeyEvent.

@kalidor kalidor force-pushed the copy_issue_key_to_clipboard branch from 5d12fe0 to 4473efc Compare February 28, 2026 14:24
@kalidor kalidor force-pushed the copy_issue_key_to_clipboard branch from 4473efc to d119aa1 Compare February 28, 2026 14:26
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