filefinder-tui

terminal file manager for macos

A Mac file manager that lives in your terminal.

Places on the left, files in the middle, a preview on the right. Four views, tabs, real Finder tags, and undo for everything except a permanent delete. Nothing runs in the background.

brew install juancasanueva/tap/filefinder-tui

Try it right here

A small model of the app, running in your browser. Click the window, then use its keys: jk to move, l to open, ? for the rest.

The sample home folder is made up, and the glyphs stand in for the Nerd Font icons. Everything else, from the columns' colours to dd and z, follows the app.

four views

One folder, four ways to look at it

Switch with a chord or a click on the header's buttons. Each tab keeps its own view, panes and marks.

The list view: places panel, tabs, colour tags and a Markdown preview
Size, User, Permissions, Kind and Modified, coloured the way eza colours them. Click a title to sort by it, again to turn the order round.
Miller columns with a Rust file's preview
Miller columns from home down to the folder, then the preview, with code coloured by bat.
The grid of thumbnails in Pictures
Real thumbnails where the terminal draws pictures, and apps show their own icon. + and − change the tile size.
Two panes with the function key bar
Two lists side by side, each under its own path, with a function key bar: F5 copies, F6 moves, F8 trashes.

features

Finder's habits, a terminal's speed

The Mac things you rely on, like tags, the Trash and Quick Look, behind keys your fingers already know.

filter and find

Type a few letters. Typos welcome.

The filter (/) narrows the folder you are looking at as you type: part of a name, or a * / ? pattern. Close matches show only when nothing matches exactly.

Find (f) walks the folders below and ranks what it finds: the whole name, then its start, the start of a word, the letters in order, and typos last. Tab looks in this folder, home, or everywhere; Ctrl+G looks inside files through ripgrep.

Find listing Rust files with their folders

preview and quick look

See inside before you open it

The preview shows a folder's items, a text file's lines with code coloured by bat, a picture with its pixel size, a PDF's first page, or an app's icon.

Space opens a Quick Look card over the window. j and k move the list underneath and the card follows; + and − zoom a picture.

Quick Look showing a photo

file operations

Nothing is ever written over

Copy, cut, paste, duplicate, rename, new folder, compress, extract, edit in $EDITOR, move to the Trash. A name already taken gets the next free copy name, or asks you first.

Everything except a permanent delete can be undone, and a permanent delete asks first, with Cancel as the default.

The menu open on a Markdown file
  • Real Finder tags

    T, then 1–7. Kept exactly as Finder writes them, so Finder, Spotlight and mdfind see them. Find takes tag:red.

  • Bulk rename in $EDITOR

    Mark several, press r, and edit their names one a line. Names can swap or go round, and one undo takes them all back.

  • Compress and extract

    zip, tar, tar.gz, tar.bz2, tar.xz, and 7z with 7-Zip installed. Archives that try to write outside their folder are refused.

  • Places panel

    Home and its folders, the Trash, your pinned folders, the tags in use, and mounted volumes, with an eject button on external drives. Ctrl+B hides it.

  • Tabs

    t opens one, [ and ] go round, 1–9 jump. Each keeps its own folder, view, panes, marks and history.

  • Mouse friendly

    Click, double-click, right-click for the menu, Ctrl-click for one more, Shift-click for a range, the wheel to move.

  • Colour that adapts

    Truecolor when the terminal says so, the nearest of 256 colours otherwise, and none at all with NO_COLOR.

  • Nothing in the background

    Folders are read when you open them, and thumbnails are made when a tile needs one. No index, no daemon.

keyboard first

Keys your fingers already know

Vim's motions for moving, single letters for the rest, and a sheet behind ? that shows the keys you set. Digits are never counts: 1–9 jump to a tab.

Move around

jk
Down, up
hl
The parent folder; browse in, or open the file
HL
Back, forward
:
Go to a path (Tab completes)
Tab
The places panel and the list

Work with files

yxp
Copy, cut, paste
vV
Mark, invert the marks
r
Rename; several at once in $EDITOR
dd
Move to Trash
z
Undo

Look and find

/
Filter this folder
f
Find below this folder
Space
Quick Look
T
Finder tags
m
The menu

Views and tabs

⌃⌥1–4
List, columns, grid, two panes
|
Two panes, or back
tw
New tab, close tab
[]
Previous tab, next tab
?
Every key, in a card; / filters it
The key sheet
The ? sheet, with the keys from your keys.toml.

your keys, your way

A Settings card, and a TOML file for the keys

The first launch writes ~/.config/filefinder-tui/keys.toml with every command and its default keys. Change a line, restart, and the ? sheet, the footer and the function key bar show your keys.

  • A command left out keeps its default keys; an empty list leaves it without any.
  • What the app can't read is named in red at launch, with its line, and that command keeps its defaults.
  • Everything else lives behind ,: view, columns, sort, hidden files, and where Space previews.
  • keys.tomlThe browsing commands and the keys that run them
  • stateView, tile size, sort, and what shows
  • pinnedYour pinned folders, one path per line
  • trashedWhere trashed items came from, for Restore
~/.config/filefinder-tui/keys.toml
copy = ["y", "ctrl-c"]      # Copy
quit = ["ctrl-q"]           # q no longer quits
help = "f1"                 # one key may be a string on its own
trash_now = []              # Delete runs nothing
The settings card
Settings, behind , or the gear in the header.

install

One command away

With Homebrew

From the juancasanueva/tap tap. brew upgrade filefinder-tui updates it.

brew install juancasanueva/tap/filefinder-tui

From source

With a Rust toolchain. The binary lands in ~/.cargo/bin, which needs to be on your PATH.

cargo install --git https://github.com/juancasanueva/filefinder-tui

Or take a binary from the releases page. Then run filefinder-tui in any folder.

What it needs

  • macOS

    On Apple Silicon or Intel.

  • A terminal that draws pictures

    Ghostty, kitty and WezTerm use the kitty protocol, iTerm2 its own. Others fall back to coarser half-block pictures.

  • The kitty keyboard protocol

    For chords such as Ctrl+Opt+1–4 and Ctrl+Shift+N. Ghostty, kitty, WezTerm and iTerm2 have it.

  • bat, for coloured code

    Homebrew installs it with the app. Without it, code shows plain.

  • A Nerd Font, for the icons

    Without one, run with FILEFINDER_ICONS=plain for plain Unicode marks.

faq

Questions, answered plainly

Something missing? Open an issue on GitHub.

Using it

Why do the icons show as boxes?

The icons come from a Nerd Font. Set one as your terminal font, or run with FILEFINDER_ICONS=plain for plain Unicode marks.

Why are the thumbnails blocky?

Real pictures need a terminal with a graphics protocol: Ghostty, kitty and WezTerm use the kitty protocol, and iTerm2 its own. Other terminals get coarser half-block pictures.

Why can't I see what's in the Trash?

Listing ~/.Trash needs Full Disk Access for your terminal, in System Settings → Privacy & Security. Moving things into it works without it.

Are the tags real Finder tags?

Yes. They are kept in the com.apple.metadata:_kMDItemUserTags attribute exactly as Finder writes it, so Finder, Spotlight and mdfind see them, and tags of your own stay as they are.

How far does Find look?

Below the folder you are in, your home, or everywhere: / on the system volume and the home folder, leaving out system folders and other volumes. It stops after 500 matches and never follows links to folders.

Does it work without colour?

Yes. With NO_COLOR set, the cursor row is reverse video, marked rows are underlined, and tags show as their digits.

Trust

Can it overwrite my files?

No operation writes over a name in use. A paste that meets a taken name asks: keep both, replace (the old one goes to the Trash, and undo brings it back), skip, or cancel.

Does it run in the background?

No. There is no index and no daemon. Folders are read when you open them, and thumbnails are made when a tile needs one.

What does it keep on disk?

Your view, keys, pinned folders and where trashed items came from, in ~/.config/filefinder-tui/. Quick Look thumbnails go to ~/Library/Caches/filefinder-tui/.

The project

What isn't included?

Copying and pasting with other apps through the system clipboard, Open With apps other than the default one, sharing, drag and drop, and the mouse's back and forward buttons.

Is it free?

Yes. filefinder-tui is open source under the MIT license, written in Rust with ratatui.

Open a folder. Keep your hands on the keys.

Free, open source, and one command away.

brew install juancasanueva/tap/filefinder-tui
Source on GitHub