A Node.js CLI tool to bookmark directories and files with aliases for quick navigation.
Features
Create Bookmark: jump create <path> <alias> - Bookmark any directory or file
Navigate: jump to <alias> - Quickly jump to bookmarked locations
List: jump list - See all your bookmarks in a table
Remove: jump remove <alias> - Delete bookmarks you no longer need
Installation
Development Setup
!! Make SURE to run npm test BEFORE commiting to git!!
Clone the repository:
git clone https://github.com/EliasL-git/jump-cli
cd jump-cli
Install dependencies:
npm install
Link for local development:
npm link
Global Installation (when published)
npm install -g jump-cli-beta
Usage
Basic Commands
# Create a bookmark for a directory
jump create /var/www/project WORK
# Create a bookmark for a file
jump create ~/documents/notes.txt NOTES
# List all bookmarks
jump list
# Navigate to a bookmark (outputs path)
jump to WORK
# Remove a bookmark
jump remove WORK
Shell Integration
For the jump to command to change directories in your current shell, add this function to your ~/.bashrc or ~/.zshrc:
function jump() {
local result=$(jump-cli "$@")
if [[ "$1" == "to" && -d "$result" ]]; then
cd "$result"
else
echo "$result"
fi
}
After adding this function, you can use:
jump to WORK # This will actually change your current directory
Storage
Bookmarks are stored locally in a JSON file at ~/.jump.json:
Jump CLI
A Node.js CLI tool to bookmark directories and files with aliases for quick navigation.
Features
jump create <path> <alias>- Bookmark any directory or filejump to <alias>- Quickly jump to bookmarked locationsjump list- See all your bookmarks in a tablejump remove <alias>- Delete bookmarks you no longer needInstallation
Development Setup
!! Make SURE to run npm test BEFORE commiting to git!!
Clone the repository:
Install dependencies:
Link for local development:
Global Installation (when published)
Usage
Basic Commands
Shell Integration
For the
jump tocommand to change directories in your current shell, add this function to your~/.bashrcor~/.zshrc:After adding this function, you can use:
Storage
Bookmarks are stored locally in a JSON file at
~/.jump.json:Requirements
Project Structure
License
MIT