diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 11:04:31 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 11:04:31 +0100 |
| commit | 750bf2d2ab89c5c9c6e346015f0373e726404376 (patch) | |
| tree | 83c2f0f50059e6b866835d825513d28cb535d3fb /config | |
| parent | 59297cbd2a6a5c78f131e3b1a8c60710198f5213 (diff) | |
| download | dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.gz dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.bz2 dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.zip | |
Add yazi
Diffstat (limited to 'config')
| -rw-r--r-- | config/fish/config.fish | 1 | ||||
| -rw-r--r-- | config/yazi/keymap.toml | 11 | ||||
| -rw-r--r-- | config/yazi/yazi.toml | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish index fbe5f7a..d205631 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -120,6 +120,7 @@ if status is-interactive alias nvim 'VIMINIT="" /usr/bin/nvim' end alias v 'nvim' + alias y 'yazi' alias gdb 'gdb -q' # disable long intro message alias sudo 'sudo ' # enable color (the search for aliases continues) alias doas 'doas ' # same for doas diff --git a/config/yazi/keymap.toml b/config/yazi/keymap.toml new file mode 100644 index 0000000..4247c4c --- /dev/null +++ b/config/yazi/keymap.toml @@ -0,0 +1,11 @@ +# from: https://yazi-rs.github.io/docs/tips +[[manager.prepend_keymap]] +on = "<C-n>" +run = ''' + shell 'dragon-drop -x -i -T "$1"' --confirm +''' +desc = "Open the drag and drop utility" +[[manager.prepend_keymap]] +on = "!" +run = 'shell "$SHELL" --block --confirm' +desc = "Open shell in the current directory" diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml new file mode 100644 index 0000000..bf5487d --- /dev/null +++ b/config/yazi/yazi.toml @@ -0,0 +1,4 @@ +[manager] +linemode = "size" +sort_by = "modified" +sort_reverse = true |
