Filecon
A terminal-based file manager built on the Typr terminal UI toolkit.
Features
- Directory browsing with MIME-type detection
- Customizable views (content preview, file types, line counts, etc.)
- Command execution with pipe support
- Directory and command history
- Configurable keybindings and colors
Installation
gem install filecon
Or add to your Gemfile:
gem "filecon", "~> 0.1"
Usage
filecon [directory]
Keybindings
Navigation
- Arrow keys / Page Up/Down / Home / End — Navigate files
- Backspace — Go to parent directory
- Number keys — Open file with default command
- Tab — Cycle hint numbers for rows beyond the first 10
Actions
o— Open list of all commands for selected filec— Command historyh— Helpv— Viewss— Sort viewf— Filter viewr— Reset viewR— Toggle recursive listing
Marking
m— Mark fileM— Mark rangea— Mark alli— Invert mark
Directory
~— Go to home directory`— Go to root directoryd— Directory history
Other
- Enter — Select / confirm
- Esc — Quit
Configuration
Config is stored at ~/.config/filecon/config.yaml and includes:
- Color settings
- Command definitions per file type
- View configurations
- History limits
Development
git clone https://codeberg.org/typr/filecon
cd filecon
bundle install
rake test
License
GPL-2.0-only