mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-30 22:57:54 +00:00
nu: add dirs integration
This commit is contained in:
parent
5f0248de65
commit
774fa3b7b1
44
nu/autoload/dirs.nu
Normal file
44
nu/autoload/dirs.nu
Normal file
@ -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 -"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user