Crates.io | projectable |
lib.rs | projectable |
version | 1.3.0 |
source | src |
created_at | 2023-06-20 16:09:44.89295 |
updated_at | 2023-06-30 20:31:08.267706 |
description | projectable is a highly configurable TUI file manager, built for projects. You can handle all your project's file-based needs from a comfortable and smooth interface! |
homepage | https://github.com/dzfrias/projectable |
repository | https://github.com/dzfrias/projectable |
max_upload_size | |
id | 895328 |
size | 804,823 |
Preview done with bat
projectable is a highly configurable TUI file manager built for projects. You can do handle all your project's file-based needs from a comfortable and smooth interface.
Instead of exploring the depths of your most nested directory, open a file simply from the projectable file listing!
Here are just a few builtin things projectable can do:
toml
fileTo get started, you can use one of the following installation methods:
When installing from Cargo or building from source, the MSRV for projectable
is currently 1.70.x
$ cargo install projectable
$ brew install dzfrias/formulae/projectable
projectable is available from the Arch User Repository though this package. Thanks to @Absobel for creating this!
Go to the releases page, and binaries for every major platform should be there.
Requires Rust to be installed on your computer.
$ git clone https://github.com/dzfrias/projectable
$ cd projectable
$ cargo build --release
$ ./target/release/prj
To verify installation worked correctly, run prj --version
.
After you've installed, run prj
to start it up! The default keybinds are
vim-like (k for up, j for down), but you can change them in
CONFIG.md.
Here a list of the available actions and their default bindings. For customization, see CONFIG.md.
Key | Description |
---|---|
j |
Go down |
k |
Go up |
enter |
Open file or directory |
q /esc |
Quit |
o |
Expand all |
O |
Collapse all |
g |
Go to first |
G |
Go to last |
l |
Expand all under directory |
h |
Collapse all under directory |
f |
Focus directory |
n |
New file |
N |
New directory |
d |
Delete file/directory |
r |
Rename file |
R |
Move file |
e |
Execute command (see syntax) |
ctrl-c |
Cancel command(s) |
v |
File-specific command |
ctrl-n |
Go down by three |
ctrl-p |
Go up by three |
/ |
Search |
ctrl-d |
Move preview down |
ctrl-u |
Move preview up |
t |
Toggle git diff view |
T |
Toggle filter for modified files |
. |
Toggle hidden files |
m |
Toggle mark on file |
M |
Open marks |
\ |
Clear filters (focus, git) |
? |
Open help window |
You can make your own keybinds, too! This is of course done in the configuration file, the details of which can be found in CONFIG.md.
The execute command action has some extra features that allow for easy and dynamic command execution.
By default commands are run in the background, but this behavior can be changed,
so interactive programs like fzf work. In the
command execution window, prepend !!
to execute in the foreground. For example,
!!fzf
will execute fzf
.
Additionally, use {}
to interpolate the currently selected file into your
command. echo {}
would log the file you are currently selecting.
Lastly, {...}
will prompt you for input. This is only available in custom
commands defined in the config file. So, if you've defined a custom command
bound to ctrl-b
that executes cargo add {...}
, pressing ctrl-b
will prompt
you for something to cargo add
.
There are also keybinds that integrate with tmux.
When entering input to run a command, press ctrl-v
to open a vertical split.
ctrl-x
will open a horizontal one, ctrl-n
a new window, and ctrl-f
a
floating one.
In short:
Item | Description |
---|---|
!! |
Execute in foreground |
{} |
Interpolate selected file |
{...} |
Prompt for input |
ctrl-v |
Vertical split |
ctrl-x |
Horizontal split |
ctrl-n |
New window |
ctrl-f |
Floating window |
This project is licensed under the MIT License.