Skip to content

ghiden/notational-velocity-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Notational Velocity in Shell

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.

Features

  • 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.

Prerequisites

Installation

  1. Clone the repository or download the script.

    git clone https://github.com/your-username/notational-velocity-sh.git
    cd notational-velocity-sh
  2. Make the script executable.

    chmod +x nv.sh
  3. Customize the script.

    Open nv.sh in your editor and set the NV_DIR variable to the directory where you want to store your notes. You can also change the EDITOR variable to your preferred vi text editor.

    # config
    NV_DIR="YOUR_NV_DIR"
    EDITOR="nvim"
    # FUZZY can be 'fzf' or 'skim'
    FUZZY="fzf"
  4. Place the script in your PATH.

    Move the nv.sh script to a directory in your system's PATH (e.g., /usr/local/bin) to make it accessible from anywhere in the terminal.

    sudo mv nv.sh /usr/local/bin/nv

Usage

To use the script, run the following command in your terminal:

nv

This will open an interactive fuzzy search interface powered by skim.

Searching for Notes

The script runs both fuzzy and content search at the same time:

Key Bindings

  • 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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

notational velocity (nvalt) in shell

Resources

License

Stars

Watchers

Forks

Contributors

Languages