💫 projectable

screenshot

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:

🚀 Getting Started

To get started, you can use one of the following installation methods:

Minimum Supported Rust Version (MSRV)

When installing from Cargo or building from source, the MSRV for projectable is currently 1.70.x

cargo

bash $ cargo install projectable

Homebrew

bash $ brew install dzfrias/formulae/projectable

Releases

Go to the releases page, and binaries for every major platform should be there.

Build from source

Requires Rust to be installed on your computer.

bash $ 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.

⌨️ Keybinds

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

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.

Command Syntax

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 |

✍️ License

This project is licensed under the MIT License.