Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.49 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.49 KB

bookmarks-persistence.yazi

A Yazi plugin that Supports persistent bookmark management.No bookmarks are lost after you close yazi.

inspired by bookmarks

Note

The latest main branch of Yazi is required at the moment.

This plugin supports custom bookmark prompts and binding keys, but can also be automatically generated by the code, just need to key enter when the input box pops up, the default prompt is the path of the file.

2024-04-18.19-11-37.mp4

Installation

# Linux/macOS
git clone https://github.com/DreamMaoMao/bookmarks-persistence.yazi.git ~/.config/yazi/plugins/bookmarks-persistence.yazi

# Windows
git clone https://github.com/DreamMaoMao/bookmarks-persistence.yazi.git $env:APPDATA\yazi\config\plugins\bookmarks-persistence.yazi

Usage

Add this to your keymap.toml:

[[manager.prepend_keymap]]
on = [ "u", "a" ]
exec = "plugin bookmarks-persistence --args=save"
desc = "Save current position as a bookmark"

[[manager.prepend_keymap]]
on = [ "u", "g" ]
exec = "plugin bookmarks-persistence --args=jump"
desc = "Jump to a bookmark"

[[manager.prepend_keymap]]
on = [ "u", "d" ]
exec = "plugin bookmarks-persistence --args=delete"
desc = "Delete a bookmark"

[[manager.prepend_keymap]]
on = [ "u", "D" ]
exec = "plugin bookmarks-persistence --args=delete_all"
desc = "Delete all bookmarks"