cfiles - A Fast Terminal File Manager with Vim Keybindings

cfiles is a terminal-based file manager written in C that combines speed, lightweight design, and Vim keybindings. It provides an efficient alternative to graphical file managers for users who prefer command-line interfaces and are familiar with Vim navigation patterns.

What is cfiles?

cfiles is designed to be fast, lightweight, and highly customizable. While inspired by ranger (another popular terminal file manager), cfiles distinguishes itself through its native Vim keybinding support and minimalistic approach. The tool focuses on providing essential file management functionality without unnecessary bloat, making it ideal for system administrators and developers who work extensively in terminal environments.

cfiles Interface Layout Directory Tree ? home/ ? user/ ? documents/ ? downloads/ ? desktop/ File Contents ? report.pdf ? notes.txt ? presentation.pptx ? archives/

Installation

cfiles is available in most Linux distribution repositories. Installation varies by distribution:

# Ubuntu/Debian
sudo apt-get install cfiles

# Arch Linux
sudo pacman -S cfiles

# Fedora
sudo dnf install cfiles

For distributions without cfiles in their repositories, you can compile from source by cloning the GitHub repository and following the build instructions provided in the project's README.

Basic Usage

Launch cfiles by simply typing the command:

cfiles

The interface displays a dual-pane layout: the left pane shows the directory tree hierarchy, while the right pane displays contents of the selected directory. Navigation follows Vim conventions, making it intuitive for Vim users.

Essential Keyboard Shortcuts

Shortcut Action
j/k Move down/up in file list
h/l Navigate left (parent dir) / right (enter dir)
Ctrl+f Search files and directories
i Toggle hidden files visibility
n/N Next/previous search result
Enter Open file/enter directory
q Quit cfiles

Configuration

cfiles stores its configuration in ~/.config/cfiles/config. The configuration file allows extensive customization of appearance and behavior:

# Color customization
color_selected = blue
color_directory = cyan
color_file = white

# Font settings
font = DejaVu Sans Mono 10

# Custom key mappings
map_quit = q
map_search = /

Key Customization Options

  • Colors Modify interface colors using color_* variables

  • Keybindings Remap shortcuts with map_* variables

  • Display Adjust font, spacing, and layout preferences

  • Behavior Configure file handling and navigation defaults

Advantages

  • Speed Minimal resource usage and fast navigation

  • Vim Integration Familiar keybindings for Vim users

  • Customizable Extensive configuration options

  • Terminal-native Works seamlessly in SSH sessions

Conclusion

cfiles offers an excellent solution for users seeking a fast, Vim-friendly terminal file manager. Its combination of speed, customizability, and intuitive navigation makes it particularly valuable for developers and system administrators who prefer command-line workflows over graphical interfaces.

Updated on: 2026-03-17T09:01:38+05:30

497 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements