Updated Basic use cases (markdown)

Terminator X 2021-08-16 20:31:03 +05:30
parent ac3fb0d3ee
commit 12fce08903

@ -32,7 +32,9 @@
## Add bookmarks
Set environment variable `NNN_BMS` as a string of `key_char:location` pairs separated by semicolons (`;`):
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 (`;`):
```sh
export NNN_BMS="d:$HOME/Documents;u:/home/user/Cam Uploads;D:$HOME/Downloads/"
@ -40,6 +42,12 @@ 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.
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.
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>.
#### Mark directory
To jump back and forth a specific directory during a session, you can ***mark*** the directory (key <kbd>,</kbd>). Visit it anytime using the Bookmark key followed by <kbd>,</kbd>. If a directory is marked, the Bookmark key lists `,` as well.