mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Updated Basic use cases (markdown)
parent
12fce08903
commit
f5952378f8
|
@ -32,9 +32,11 @@
|
||||||
|
|
||||||
## Add bookmarks
|
## 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
|
```sh
|
||||||
export NNN_BMS="d:$HOME/Documents;u:/home/user/Cam Uploads;D:$HOME/Downloads/"
|
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>).
|
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
|
#### Mark directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue