6 releases
Uses new Rust 2024
| 0.1.5 | May 31, 2026 |
|---|---|
| 0.1.4 | May 31, 2026 |
#2766 in Filesystem
21KB
497 lines
Important
Work in progress
dance
Info • Install • Usage • License
Info
Features
- Add your favorite directories and dance between them.
- Add your favorite files and dance into them with your favorite editor.
Requirements
- Unix system
Install
Binary
cargo install dnc
Shell integration
fish
function dn
set result (~/.cargo/bin/dnc)
if test -n "$result"
set fields (string split \t $result)
set kind $fields[1] | string match -r '/*'
set path $fields[2]
switch $kind
case cd
cd "$path"
case edit
nvim "$path"
case open
if type -q open
open "$path"
else if type -q xdg-open
xdg-open "$path"
else
return 1
end
end
end
end
Usage
Usage: dnc [FLAG(S) | COMMAND]
When opening a location:
* Directory
CD into it through terminal.
* Text files
Open in editor (see "editor" command)
* Other/unknown files
Open through "open" on MacOS or "xdg-open" on Linux.
----------------------------
Flags
-l Disable "last accessed" behaviour.
-s Hide shortcut hints.
-h, --help Displays this help message. When the help flag
is added, it will override all other flags or arguments.
Commands
add [path] Add a file or directory to the dance menu.
Defaults to current directory if no argument was added.
You can add as many favorites as you can handle.
reset Resets dance to its default state, removing all
perpetually stored data.
License
This project is licensed under the MIT License.
Dependencies
~2.6–7.5MB
~163K SLoC