From f6e966a7903639b4d019ecca6c0f6c334c6887c8 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Wed, 19 Feb 2025 14:02:01 +0200 Subject: [PATCH] bind :%y and :%y+ --- config/keys.nix | 20 ++++++++++++++++++++ flake.lock | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/config/keys.nix b/config/keys.nix index fe70d37..7584541 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -422,6 +422,26 @@ desc = "Copy to system clipboard"; }; } + { + mode = [ + "n" + ]; + key = "%y"; + action = ":%y"; + options = { + desc = "Yank the entire file contents"; + }; + } + { + mode = [ + "n" + ]; + key = "%Y"; + action = ":%y+"; + options = { + desc = "Copy file contents to system clipboard"; + }; + } { mode = [ diff --git a/flake.lock b/flake.lock index 963ceef..0366575 100644 --- a/flake.lock +++ b/flake.lock @@ -251,11 +251,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1737385899, - "narHash": "sha256-/zyvdstDpPhc5lhFMtKgyQdU2oXGXDb0cg4BY91NKvg=", + "lastModified": 1739527837, + "narHash": "sha256-dsb5iSthp5zCWhdV0aXPunFSCkS0pCvRXMMgTEFjzew=", "owner": "nix-community", "repo": "nixvim", - "rev": "115994f18e439a1cca9cdaaf15c004870256814d", + "rev": "a39e0a651657046f3b936d842147fa51523b6818", "type": "github" }, "original": { @@ -263,7 +263,7 @@ "repo": "nixvim", "type": "github" } - }, + }, "nuschtosSearch": { "inputs": { "flake-utils": "flake-utils_2",