Add bookmark_file_pick_mode option to README

This commit is contained in:
nralbrecht
2024-08-27 20:04:01 +02:00
parent 53ae96aed8
commit 7ef1a95da1

View File

@@ -85,6 +85,7 @@ require("bookmarks"):setup({
last_directory = { enable = false, persist = false },
persist = "none",
desc_format = "full",
bookmark_file_pick_mode = "hover",
notify = {
enable = false,
timeout = 1,
@@ -135,6 +136,17 @@ There are two possible values for this option:
| `full` | The default, it shows the full path of the bookmark, i.e., the parent folder + the hovered file |
| `parent` | Only shows the parent folder of the bookmark |
### `bookmark_file_pick_mode`
The mode for choosing which directory to bookmark.
There are two possible values for this option:
| Value | Description |
| -------- | ----------------------------------------------------------------------------------------------- |
| `hover` | The default, it uses the path of the hovered file for new bookmarks |
| `parent` | Uses the path of the parent folder for new bookmarks |
### `notify`
When enabled, notifications will be shown when the user creates a new bookmark and deletes one or