bind :%y and :%y+

This commit is contained in:
2025-02-19 14:02:01 +02:00
parent a39eb22e24
commit f6e966a790
2 changed files with 24 additions and 4 deletions

View File

@ -422,6 +422,26 @@
desc = "Copy to system clipboard"; desc = "Copy to system clipboard";
}; };
} }
{
mode = [
"n"
];
key = "<leader>%y";
action = ":%y<CR>";
options = {
desc = "Yank the entire file contents";
};
}
{
mode = [
"n"
];
key = "<leader>%Y";
action = ":%y+<CR>";
options = {
desc = "Copy file contents to system clipboard";
};
}
{ {
mode = [ mode = [

8
flake.lock generated
View File

@ -251,11 +251,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1737385899, "lastModified": 1739527837,
"narHash": "sha256-/zyvdstDpPhc5lhFMtKgyQdU2oXGXDb0cg4BY91NKvg=", "narHash": "sha256-dsb5iSthp5zCWhdV0aXPunFSCkS0pCvRXMMgTEFjzew=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "115994f18e439a1cca9cdaaf15c004870256814d", "rev": "a39e0a651657046f3b936d842147fa51523b6818",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -263,7 +263,7 @@
"repo": "nixvim", "repo": "nixvim",
"type": "github" "type": "github"
} }
}, },
"nuschtosSearch": { "nuschtosSearch": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",