format
This commit is contained in:
24
README.md
24
README.md
@@ -10,10 +10,10 @@ https://github.com/dedukun/bookmarks.yazi/assets/25795432/9a9fe345-dd06-442e-99f
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Create/delete bookmarks
|
- Create/delete bookmarks
|
||||||
- Custom Notifications
|
- Custom Notifications
|
||||||
- `''` to go back to the previous folder
|
- `''` to go back to the previous folder
|
||||||
- Bookmarks persistence
|
- Bookmarks persistence
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -86,10 +86,10 @@ present.
|
|||||||
|
|
||||||
There are three possible values for this option:
|
There are three possible values for this option:
|
||||||
|
|
||||||
| Value | Description |
|
| Value | Description |
|
||||||
| ------ | ---------------------------------------------------------------------------------------------------------------------- |
|
| ------ | -------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `none` | The default value, i.e., no persistance |
|
| `none` | The default value, i.e., no persistance |
|
||||||
| `all` | All the bookmarks are saved in persistent memory |
|
| `all` | All the bookmarks are saved in persistent memory |
|
||||||
| `vim` | This mode emulates the vim global marks, i.e., only the bookmarks in upper case (A-Z) are saved to persistent memory |
|
| `vim` | This mode emulates the vim global marks, i.e., only the bookmarks in upper case (A-Z) are saved to persistent memory |
|
||||||
|
|
||||||
### `desc_format`
|
### `desc_format`
|
||||||
@@ -98,10 +98,10 @@ The format for the bookmark description.
|
|||||||
|
|
||||||
There are two possible values for this option:
|
There are two possible values for this option:
|
||||||
|
|
||||||
| Value | Description |
|
| Value | Description |
|
||||||
| -------- | -------------------------------------------------------------------------------------------------------------------- |
|
| -------- | ----------------------------------------------------------------------------------------------- |
|
||||||
| `full` | The default, it shows the full path of the bookmark, i.e., the parent folder + the hovered file |
|
| `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 |
|
| `parent` | Only shows the parent folder of the bookmark |
|
||||||
|
|
||||||
### `notify`
|
### `notify`
|
||||||
|
|
||||||
|
|||||||
2
init.lua
2
init.lua
@@ -108,7 +108,7 @@ end)
|
|||||||
|
|
||||||
-- ***********************************************
|
-- ***********************************************
|
||||||
-- **============= C O M M A N D S =============**
|
-- **============= C O M M A N D S =============**
|
||||||
-- ***********************************************/
|
-- ***********************************************
|
||||||
|
|
||||||
local save_bookmark = ya.sync(function(state, idx)
|
local save_bookmark = ya.sync(function(state, idx)
|
||||||
local file = _get_hovered_file()
|
local file = _get_hovered_file()
|
||||||
|
|||||||
Reference in New Issue
Block a user