Skip to content
FossShelf
Home / Categories / For Engineers

tfm-tui

Mouse-first terminal file manager with dual panes and image previews

Replaces —

358 starsMITlast commit 14 Nov 2026

Who it's for

Linux developers who live in the terminal

tfm sits inside your existing terminal session, so switching to it from a shell or editor requires no context switch. Dual panes with tabs, an embedded terminal pane (right-click any directory for a shell at that path), and file drop into the terminal prompt fit naturally into a terminal-based development workflow.

You already have a keyboard-only TUI workflow you are comfortable with (ranger, lf, nnn) and do not want mouse interaction. Adding mouse navigation to a flow that does not need it is overhead.

Sysadmins managing remote file systems

Network share mounting via gvfs means sftp://, smb://, WebDAV, and FTP shares appear in the sidebar alongside local directories. Moving files between a local directory and a remote share is the same dual-pane F5/F6 operation as any local transfer.

You need SSH-native file transfer tools like rsync, or you manage file systems in headless environments where a kitty-protocol-capable terminal is not available.

Users migrating from GUI file managers to the terminal

The mouse-first model means the tool is approachable without memorizing a new modal keymap. Click, right-click, drag, and rubber-band select all work as expected from a GUI file manager. Keyboard shortcuts follow common conventions (ctrl+c/v, ctrl+z) so the behavioral gap is small.

You need macOS or Windows support, or features beyond what a terminal file manager provides. As beta software, some rough edges remain.

TypeScript developers building terminal plugins

The plugin API exposes commands, keybindings, context menus, preview handlers, and UI slots that render into the statusbar and sidebar footer using OpenTUI widgets. Plugins hot-reload without restarting the file manager, and tfm plugins new my-plugin scaffolds a starter.

Your plugin language of choice is not TypeScript. The plugin system is TypeScript-only.

The problem

Terminal file managers are fast but unforgiving. Most require memorizing a modal keymap before you can do basic tasks: rename, move, or copy a file. For developers who spend hours in the terminal but do not live in their file manager, the cognitive overhead of re-learning key bindings every time they need to do a quick file operation is a real friction point. The alternative is to switch to a GUI file manager, which means leaving the terminal entirely. On Linux, most GUI file managers lack the dual-pane layouts, network share support, and embedded terminal integration that power users expect. You end up either paying the mental cost of a keyboard-only TUI tool or losing your terminal context to open a separate application.

How it works

Mouse-first navigation

Click to select, rubber-band select multiple files, right-click for context menus, and inline rename without a separate dialog. ctrl+click toggles individual items; shift+click extends the range. Every action that requires a separate modal in keyboard-only TUI managers is available via mouse in tfm.

Dual pane with independent tabs

Two file panes side by side, each with its own path bar, sort settings, search, and tab set. Tab switches the focused pane; F5 copies the selection to the other pane and F6 moves it. Each pane can independently navigate to different directories or network shares.

Network share mounting

Open sftp://, smb://, WebDAV, and FTP shares through gvfs directly in the sidebar. Credentials are prompted in-app. The sidebar also surfaces GTK bookmarks, recently-used files, and removable drives via udisksctl.

Image and video thumbnails

Displays image and video thumbnails inline using the kitty graphics protocol, supported by kitty, ghostty, WezTerm, and Konsole. Text files render with tree-sitter syntax highlighting in the preview pane. A disk-cached thumbnail pipeline means folder revisits are instant.

TypeScript plugin system with hot reload

Plugins live in ~/.config/tfm/plugins/ and are written in TypeScript. They can add commands, keybindings, context menu items, preview handlers, and UI slots in the statusbar and sidebar footer. Plugins reload without restarting tfm. Install from a git URL with tfm plugins add <url>.

Archive extraction and compression

Right-click any file or selection for Extract Here (staged, with conflict prompts, undoable) or Compress to across 13 formats including tar.gz and 7z. Archive operations integrate with the undo/redo stack, so an accidental extract can be reversed.

Features

  • Mouse-first navigation
  • Dual pane with independent tabs
  • Network share mounting
  • Image and video thumbnails
  • TypeScript plugin system with hot reload
  • Archive extraction and compression

How to install

Install tfm on Linux with the one-line setup script.

curl -fsSL https://raw.githubusercontent.com/clarkarch/tfm-tui/main/install.sh | bash

Recommended for this setup

Strengths

  • MIT license with no usage restrictions: tfm is MIT licensed, so you can run it on personal and commercial machines, fork it, and modify it with no licensing fees or restrictions. Unlike commercial file managers that charge per-seat or per-machine, tfm is free to run anywhere on Linux.
  • Cross-app drag and drop via kitty protocol: Files can be dragged out of the terminal to other applications, and external files can be dropped into the terminal prompt as pasted paths, using the OSC 72 protocol in kitty. This is a capability absent from most terminal and GUI file managers and closes the gap between terminal workflows and desktop apps.
  • Undo/redo for every reversible file operation: Every file operation including copy, move, rename, extract, and trash has an undo entry. Permanent deletion and empty-trash cannot be undone, but every other operation can be reversed with ctrl+z. The undo history can optionally survive restarts via persist-undo in config.toml.
  • Fully remappable keybindings: Every default keybinding can be changed under [keys] in ~/.config/tfm/config.toml, and each action can take multiple bindings. The default set covers standard file manager conventions (ctrl+c/v for copy/paste, ctrl+z/y for undo/redo) so the learning curve is low for users coming from GUI tools.

Trade-offs

  • Linux only: tfm runs only on Linux. There is no macOS or Windows support. Thumbnails additionally require a kitty-protocol-capable terminal (kitty, ghostty, WezTerm, Konsole); without one, you get Nerd Font icon glyphs instead. Cross-app drag and drop requires kitty specifically.
  • Beta status with known visual anomalies: The README marks tfm as beta software. The project recommends backing up files before performing file operations. Known issues include icon black boxes when floating UI elements (menus, rubber-band selection) paint over rasterized icons, and misbehavior with custom kitty themes.
  • Optional dependencies for full feature set: Several features need external tools: rsvg-convert for SVG thumbnails, magick for raster image thumbnails, ffmpeg for video thumbnails, gio for starred files and network locations, udisksctl for removable drives, and wl-clipboard or xclip for clipboard with GUI apps. The installer reports what is missing, but a minimal install has reduced capability.
  • Thumbnails break in tmux without passthrough: Image thumbnails use the kitty graphics protocol, which requires terminal passthrough to reach through tmux. Without allow-passthrough enabled in tmux configuration, thumbnails are suppressed in tmux sessions. All other features work normally in tmux.

Tech stack

Languages
TypeScript, Shell, Zig
Frameworks
—
Databases
—
Tooling
Bun

FAQ

Does tfm work inside tmux?

Yes, but image thumbnails require tmux's allow-passthrough option to be enabled in your tmux configuration. Without it, thumbnails are suppressed and you see Nerd Font icon glyphs instead. All other features work normally in tmux.

Which terminals support image thumbnails in tfm?

Image thumbnails use the kitty graphics protocol, supported by kitty, ghostty, WezTerm, and Konsole. Without a compatible terminal, tfm falls back to Nerd Font glyphs. Cross-app drag and drop is additionally limited to kitty only.

Is tfm safe for daily use with important files?

The README marks tfm as beta and recommends backing up irreplaceable files before file operations. That said, most file operations (move, copy, rename, extract) are undoable via ctrl+z. Only permanent deletion and empty-trash cannot be reversed.

How do I install tfm?

The quickest path is the one-line install script from the GitHub README (curl -fsSL https://raw.githubusercontent.com/clarkarch/tfm-tui/main/install.sh | bash). You can also build from source with Bun. The installer reports which optional tools (magick, ffmpeg, gio) are missing for full feature support.

Can I use tfm to browse network shares?

Yes. tfm mounts sftp://, smb://, WebDAV, and FTP shares through gvfs. Open them from the sidebar via Connect to Server, enter credentials in-app, and they appear alongside local directories. Requires gio and the relevant gvfs backends to be installed.

Similar tools

More in Engineers