This script provides a simple command-line interface for managing notes, inspired by originally Notational Velocity, and later nvalt.
Both apps are not in development anymore, so I sometimes search for alternatives. Then I found this vim extension notational-fzf-vim but it wasn't quite right from how I wanted. As part of my trial, I found this issuealok/notational-fzf-vim#22) in the project which was nearly almost perfect for my needs.
So this project is just a shell script that I adjusted to fit my needs.
- Fuzzy search for note filenames.
- Content-based search for notes.
- Create new notes with a specified query.
- Open notes in your preferred Vi-based editor.
-
Clone the repository or download the script.
git clone https://github.com/your-username/notational-velocity-sh.git cd notational-velocity-sh -
Make the script executable.
chmod +x nv.sh
-
Customize the script.
Open
nv.shin your editor and set theNV_DIRvariable to the directory where you want to store your notes. You can also change theEDITORvariable to your preferred vi text editor.# config NV_DIR="YOUR_NV_DIR" EDITOR="nvim" # FUZZY can be 'fzf' or 'skim' FUZZY="fzf"
-
Place the script in your
PATH.Move the
nv.shscript to a directory in your system'sPATH(e.g.,/usr/local/bin) to make it accessible from anywhere in the terminal.sudo mv nv.sh /usr/local/bin/nv
To use the script, run the following command in your terminal:
nvThis will open an interactive fuzzy search interface powered by skim.
The script runs both fuzzy and content search at the same time:
- Enter: Open the selected note in your configured editor (
$EDITOR). - Ctrl-N: Create a new note with the current query as the filename. The new note will be created in your notes directory and opened in your editor.
This project is licensed under the MIT License. See the LICENSE file for details.