From a8df0642a8d124b8de6fe280dc0f806f7fae604f Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 14 Nov 2024 23:44:40 -0700 Subject: [PATCH] vim: Allow :cpplink for CopyPermalinkToLine (#20707) Release Notes: - vim: Added `:cpplink` to copy a permanent git link to the highlighted range to the clipboard --- crates/vim/src/command.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs index abc7a31aa8468184e934df205c66b1ec32d15196..2fa75c85797353ac1507f0231eba7eb36f9522d2 100644 --- a/crates/vim/src/command.rs +++ b/crates/vim/src/command.rs @@ -690,6 +690,7 @@ fn generate_commands(_: &AppContext) -> Vec { 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), ] }