Updated Basic use cases (markdown)

Terminator X 2021-08-16 20:34:35 +05:30
parent 12fce08903
commit f5952378f8
1 changed files with 9 additions and 5 deletions

@ -32,9 +32,11 @@
## Add bookmarks
There are 2 ways (can be used together) to manage bookmarks:
There are 2 ways (can be used together) to manage bookmarks.
1. Set environment variable `NNN_BMS` as a string of `key_char:location` pairs separated by semicolons (`;`):
#### Environment variable `NNN_BMS`
Set environment variable `NNN_BMS` as a string of `key_char:location` pairs separated by semicolons (`;`):
```sh
export NNN_BMS="d:$HOME/Documents;u:/home/user/Cam Uploads;D:$HOME/Downloads/"
@ -42,11 +44,13 @@ export NNN_BMS="d:$HOME/Documents;u:/home/user/Cam Uploads;D:$HOME/Downloads/"
The bookmarks are listed in the help and config screen (key <kbd>?</kbd>).
2. Create symlinks to bookmarked locations within the `bookmarks` directory in the `nnn` config directory.
#### `bookmarks` directory
Pressing <kbd>Enter</kbd> at the bookmarks prompt takes to this directory. If `NNN_BMS` is not set, it happens directly on bookmarks key press.
Create symlinks to bookmarked locations within the `bookmarks` directory in the `nnn` config directory.
To add a new bookmark on the fly, select the directory, go to the `bookmarks` directory and create a symlink by pressing <kbd>n</kbd>.
<kbd>Enter</kbd> at the bookmarks prompt takes to this directory. If `NNN_BMS` is not set, it happens directly on bookmarks key.
To add a new bookmark on the fly, select the directory, go to `bookmarks` and create a symlink by pressing <kbd>n</kbd>.
#### Mark directory