From f07c54346b2d0a5911b63bad4a524083e5227735 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 9 Aug 2024 20:02:59 +0200 Subject: [PATCH] remove zellij autostart and add keyboard shortcut for it --- other/config.nu | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/other/config.nu b/other/config.nu index c735edb..c5ea054 100644 --- a/other/config.nu +++ b/other/config.nu @@ -335,6 +335,27 @@ $env.config = { ] keybindings: [ + ################################################################################ + # Custom keybinds # + ################################################################################ + { + name: undo_change + modifier: control + keycode: char_z + mode: [vi_normal, vi_insert] + event: [ + { edit: Clear } + { + edit: InsertString + value: "zellij attach main -c" + } + { send: Enter } + ] + } + + ################################################################################ + # Default keybinds # + ################################################################################ { name: completion_menu modifier: none @@ -810,7 +831,7 @@ def start_zellij [] { } } -start_zellij +# start_zellij # plugin add nu_plugin_net # plugin add nu_plugin_gstat