Merge pull request #50 from KaiExec/main

Add the support of higher version.
This commit is contained in:
Diogo Duarte
2025-07-09 22:23:08 +01:00
committed by GitHub

View File

@@ -33,22 +33,23 @@ the bookmarks are saved in DDS's state file (`~/.local/state/yazi/.dds` on Linux
Add this to your `keymap.toml`: Add this to your `keymap.toml`:
```toml ```toml
[[manager.prepend_keymap]] # If your yazi version is lower than v25.5.28, repleace "mgr" by "manager".
[[mgr.prepend_keymap]]
on = [ "m" ] on = [ "m" ]
run = "plugin bookmarks save" run = "plugin bookmarks save"
desc = "Save current position as a bookmark" desc = "Save current position as a bookmark"
[[manager.prepend_keymap]] [[mgr.prepend_keymap]]
on = [ "'" ] on = [ "'" ]
run = "plugin bookmarks jump" run = "plugin bookmarks jump"
desc = "Jump to a bookmark" desc = "Jump to a bookmark"
[[manager.prepend_keymap]] [[mgr.prepend_keymap]]
on = [ "b", "d" ] on = [ "b", "d" ]
run = "plugin bookmarks delete" run = "plugin bookmarks delete"
desc = "Delete a bookmark" desc = "Delete a bookmark"
[[manager.prepend_keymap]] [[mgr.prepend_keymap]]
on = [ "b", "D" ] on = [ "b", "D" ]
run = "plugin bookmarks delete_all" run = "plugin bookmarks delete_all"
desc = "Delete all bookmarks" desc = "Delete all bookmarks"