A way to quickly navigate your filesystem from the command line.
Quicknav is a command line tool that allows you to easily jump to specific locations in your filesystem from a simple command. Quicknav is built for terminal navigation on Unix operating systems.
Quicknav allows you to easily set shortcuts to locations in your filesystem. It is made to speed up your terminal navigation to commonly accessed places without cluttering your terminal with aliases.
```sh
nav rs # go to rust projects folder nav py # go to python projects folder nav js # go to javascript projects folder ```
You can install quicknav via one of the supported package managers or by downloading the binary and adding it to your path. Prebuilt binaries can be downloaded from the GitHub releases page.
In the future, support for more package managers will continue to grow.
| Distribution | Package Manager | Command |
| --------------------------- | --------------- | ------------------------------------------------------ |
| Arch | Paru | paru -S quicknav
|
| Arch | Yay | yay -S quicknav
|
| MacOS | Homebrew | brew tap MrDogeBro/quicknav && brew install quicknav
|
| Most Linux (Snap Installed) | Snap | sudo snap install quicknav --classic
|
| Any (Rust Installed) | Cargo | cargo install quicknav
|
Adding quicknav to your shell is increadably easy. You just need to add the following line to your shells
configuration file and replace shell_name
with the name of your shell. The shells listed below are the only
shells that are currently supported. Other shells may work but are not guaranteed to. If you would like another
shell to be supported, please head over to feedback in the discussions tab.
Add the following to your ~/.bashrc
bash
eval "$(quicknav init bash)"
Add the following to your ~/.zshrc
zsh
eval "$(quicknav init zsh)"
Add the following to your ~/.config/fish/config.fish
fish
quicknav init fish | source
Adding and removing shortcuts is quite simple. You can either directly edit the configuration file or use the
add and remove commands to do the same job. If you want the most configuration, then you will need to use the
config file. The config file can be found at ~/.config/quicknav/quicknav.json
or if you have set the xdg
config home, your config will be found at $XDG_CONFIG_HOME/quicknav/quicknav.json
.
The built in configuration commands are listed below. To get more info about a command, use the help command and specify which command you would like help for.
```sh
$ quicknav help command_name
$ quicknav list [call]
$ quicknav add
$ quicknav remove
If you would like to edit the configuration file directly, new shortcuts must follow the following json structure. You can add multiple calls (what you use to navigate to the location) but you are only required to include one.
json
{
"name": "shortcut name",
"description": "shortcut description",
"location": "the location to jump to (~ supported)",
"calls": ["callname", "anothercall", "maybeevenanothercall"]
}
Once you have added a shortcut, you can use the nav command to navigate to that shortcut by one of its calls. For example, if you want to go to the shortcut in the example above, we could use one of the following commands.
```sh
$ nav callname
$ nav anothercall
$ nav maybeevenanothercall ```
You can also check out the example configuration.
These are flags that you can add to the init command that is used to load your shell profile. For more info on loading your shell profile, check out Adding Quicknav to Your Shell.
-c, --command
: Changes the command which is used to navigate to a shortcut. The default command is nav
.Quicknav is licensed under an MIT license.