Played around with yazi and now the config is tight
Lots of new Keymaps
This commit is contained in:
@@ -7,7 +7,7 @@ https://github.com/yazi-rs/plugins/assets/17523360/aac9341c-b416-4e0c-aaba-889d4
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
ya pack -a yazi-rs/plugins:jump-to-char
|
||||
ya pkg add yazi-rs/plugins:jump-to-char
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -15,7 +15,7 @@ ya pack -a yazi-rs/plugins:jump-to-char
|
||||
Add this to your `~/.config/yazi/keymap.toml`:
|
||||
|
||||
```toml
|
||||
[[manager.prepend_keymap]]
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "f"
|
||||
run = "plugin jump-to-char"
|
||||
desc = "Jump to char"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
--- @since 25.5.28
|
||||
|
||||
local AVAILABLE_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789."
|
||||
|
||||
local changed = ya.sync(function(st, new)
|
||||
@@ -22,9 +24,9 @@ return {
|
||||
|
||||
local kw = escape(cands[idx].on)
|
||||
if changed(kw) then
|
||||
ya.manager_emit("find_do", { "^" .. kw })
|
||||
ya.emit("find_do", { "^" .. kw })
|
||||
else
|
||||
ya.manager_emit("find_arrow", {})
|
||||
ya.emit("find_arrow", {})
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user