vim: Allow :cpplink for CopyPermalinkToLine (#20707)

Release Notes:

- vim: Added `:<range>cpplink` to copy a permanent git link to the
highlighted range to the clipboard
This commit is contained in:
Conrad Irwin 2024-11-14 23:44:40 -07:00 committed by GitHub
parent aee01f2c50
commit a8df0642a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -690,6 +690,7 @@ fn generate_commands(_: &AppContext) -> Vec<VimCommand> {
VimCommand::new(("0", ""), StartOfDocument),
VimCommand::new(("e", "dit"), editor::actions::ReloadFile)
.bang(editor::actions::ReloadFile),
VimCommand::new(("cpp", "link"), editor::actions::CopyPermalinkToLine).range(act_on_range),
]
}