mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
yazi: add config, and shell wrapper
This commit is contained in:
parent
1144351375
commit
34f696607a
3 changed files with 24 additions and 0 deletions
8
config/fish/functions/yaz.fish
Normal file
8
config/fish/functions/yaz.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
function yaz
|
||||||
|
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||||
|
yazi $argv --cwd-file="$tmp"
|
||||||
|
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||||
|
builtin cd -- "$cwd"
|
||||||
|
end
|
||||||
|
rm -f -- "$tmp"
|
||||||
|
end
|
||||||
10
config/yazi/keymap.toml
Normal file
10
config/yazi/keymap.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "g", "c" ]
|
||||||
|
run = "cd ~/.dotfiles"
|
||||||
|
desc = "goto .dotfiles"
|
||||||
|
|
||||||
|
[[mgr.prepend_keymap]]
|
||||||
|
on = [ "g", "v" ]
|
||||||
|
run = "cd ~/vods"
|
||||||
|
desc = "goto ~/vods"
|
||||||
|
|
||||||
6
config/yazi/yazi.toml
Normal file
6
config/yazi/yazi.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[mgr]
|
||||||
|
sort_sensitive = false
|
||||||
|
sort_dir_first = true
|
||||||
|
linemode = "none"
|
||||||
|
show_symlink = true
|
||||||
|
show_hidden = false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue