diff --git a/Basic-use-cases.md b/Basic-use-cases.md index 78b5fad..0a2d704 100644 --- a/Basic-use-cases.md +++ b/Basic-use-cases.md @@ -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 ?). +2. Create symlinks to bookmarked locations within the `bookmarks` directory in the `nnn` config directory. + +Pressing Enter 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 n. + #### Mark directory To jump back and forth a specific directory during a session, you can ***mark*** the directory (key ,). Visit it anytime using the Bookmark key followed by ,. If a directory is marked, the Bookmark key lists `,` as well.