aboutsummaryrefslogtreecommitdiff
path: root/modules/user/editors/kakoune/default.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-06-02 20:17:51 -0400
committerRosa <rosaontheweb@proton.me>2026-06-02 20:17:51 -0400
commit47578cff5e310b260ec894edf15ce425efd3ae94 (patch)
treece1ca6bdadda5de55bf6ddc730d6b6e9bdaf9132 /modules/user/editors/kakoune/default.nix
parentc137036e26bc15a1683eda089e8a9a67649d9c24 (diff)
add newfile to kakoune
Diffstat (limited to 'modules/user/editors/kakoune/default.nix')
-rw-r--r--modules/user/editors/kakoune/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/user/editors/kakoune/default.nix b/modules/user/editors/kakoune/default.nix
index 09ec33a..e4f4aa5 100644
--- a/modules/user/editors/kakoune/default.nix
+++ b/modules/user/editors/kakoune/default.nix
@@ -57,6 +57,12 @@
key = "<a-r>";
mode = "normal";
}
+ {
+ docstring = "Create a new file";
+ effect = ":e %sh{${(pkgs.writeShellScript "newfile" (builtins.readFile ./newfile.sh))}}<ret>";
+ key = "<c-a-n>";
+ mode = "normal";
+ }
];
numberLines = {