Update README

This commit is contained in:
Diogo Duarte
2025-02-18 23:13:40 +00:00
parent 0e772b951b
commit e45dffc27a

View File

@@ -23,10 +23,10 @@ ya pack -a dedukun/bookmarks
## Import/Export bookmarks
This plugin uses [Yazi's DDS](https://yazi-rs.github.io/docs/dds/) for bookmark persistence, as such,
This plugin uses [Yazi's DDS](https://yazi-rs.github.io/docs/dds/) for bookmark persistence, as such,
the bookmarks are saved in DDS's state file (`~/.local/state/yazi/.dds` on Linux and `C:\Users\USERNAME\AppData\Roaming\yazi\state\.dds` on Windows)
***NOTE:*** This system may be used by other plugins that you have installed, so this file might have more data than just the bookmarks.
**_NOTE:_** This system may be used by other plugins that you have installed, so this file might have more data than just the bookmarks.
## Configuration
@@ -62,7 +62,7 @@ The following are the default configurations:
```lua
-- ~/.config/yazi/init.lua
require("bookmarks"):setup({
last_directory = { enable = false, persist = false },
last_directory = { enable = false, persist = false, key= "'" },
persist = "none",
desc_format = "full",
file_pick_mode = "hover",
@@ -85,6 +85,8 @@ the last directory.
There's also the option to enable persistence to this automatic bookmark.
It's also possible to change the trigger key.
### `persist`
When enabled the bookmarks will persist, i.e. if you close and reopen Yazi they will still be