diff --git a/nu/autoload/dirs.nu b/nu/autoload/dirs.nu new file mode 100644 index 0000000..60b2d2d --- /dev/null +++ b/nu/autoload/dirs.nu @@ -0,0 +1,44 @@ +use std/dirs +use std/dirs shells-aliases * + +$env.config.keybindings = $env.config.keybindings | append [ + { + name: dirs_quickadd + modifier: control + keycode: char_f + mode: [emacs vi_normal vi_insert] + event: { + send: ExecuteHostCommand + cmd: "dirs add .." + } + } + + { + name: dirs_drop + modifier: alt + keycode: char_f + mode: [emacs vi_normal vi_insert] + event: { + send: ExecuteHostCommand + cmd: "dirs drop" + } + } + + { + name: dirs_prev + modifier: control + keycode: char_h + mode: [emacs vi_normal vi_insert] + event: [ + { + send: ExecuteHostCommand + cmd: "dirs prev" + } + + { + send: ExecuteHostCommand + cmd: "cd -" + } + ] + } +]