mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(yazi): Add yazi config
This commit is contained in:
parent
9009c4210c
commit
903570504f
2 changed files with 71 additions and 0 deletions
69
.config/yazi/config/keymap.toml
Normal file
69
.config/yazi/config/keymap.toml
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
||||||
|
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
||||||
|
"$schema" = "https://yazi-rs.github.io/schemas/prepend_keymap.json"
|
||||||
|
|
||||||
|
[manager]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
|
||||||
|
# Hopping
|
||||||
|
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
{ on = "i", run = "enter", desc = "Enter the child directory" },
|
||||||
|
{ on = "I", run = "forward", desc = "Go forward to the next directory" },
|
||||||
|
|
||||||
|
# Seeking
|
||||||
|
{ on = "E", run = "seek -5", desc = "Seek up 5 units in the preview" },
|
||||||
|
{ on = "N", run = "seek 5", desc = "Seek down 5 units in the preview" },
|
||||||
|
|
||||||
|
# Find
|
||||||
|
{ on = "k", run = "find_arrow", desc = "Go to the next found" },
|
||||||
|
{ on = "K", run = "find_arrow --previous", desc = "Go to the previous found" },
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[select]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
# Mode
|
||||||
|
{ on = "l", run = "insert", desc = "Enter insert mode" },
|
||||||
|
{ on = "L", run = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" },
|
||||||
|
{ on = "i", run = "move 1", desc = "Move forward a character" },
|
||||||
|
{ on = "j", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[confirm]
|
||||||
|
prepend_keymap = [
|
||||||
|
{ on = "N", run = "close", desc = "Cancel the confirm" },
|
||||||
|
|
||||||
|
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[completion]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
]
|
||||||
|
|
||||||
|
[help]
|
||||||
|
|
||||||
|
prepend_keymap = [
|
||||||
|
# Navigation
|
||||||
|
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
|
||||||
|
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
|
||||||
|
]
|
||||||
2
.config/yazi/config/yazi.toml
Normal file
2
.config/yazi/config/yazi.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[manager]
|
||||||
|
show_hidden = true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue