docs/getting-started
Getting Started with RTFM
This guide will get you up and running with RTFM in minutes.
Installation
Quick Install (Recommended)
gem install rtfm-filemanager
With Full Features (Ubuntu/Debian)
sudo apt update sudo apt install ruby-full x11-utils xdotool bat pandoc poppler-utils \ odt2txt docx2txt unzip gnumeric catdoc w3m imagemagick \ ffmpegthumbnailer tar gzip bzip2 xz-utils unrar p7zip-full gem install rtfm-filemanager
macOS
brew install ruby imagemagick w3m bat pandoc poppler gem install rtfm-filemanager
First Launch
rtfm
On first run, RTFM will:
- Show a welcome message
- Add
rfunction to your shell config (~/.bashrc or ~/.zshrc) - Create
~/.rtfm/directory with plugins and config
Press q to accept and continue.
The r Command
After installation, you can launch RTFM with just:
r
The magic: When you quit RTFM (press q), you’ll be in RTFM’s current directory, not where you launched it.
Example workflow:
r # Launch RTFM # Navigate to ~/Documents/projects q # Quit RTFM pwd # You're in ~/Documents/projects r # Launch RTFM again (remembers location)
Basic Navigation
Moving Around
| Key | Action |
|---|---|
↓ or j |
Move down |
↑ or k |
Move up |
→ or l or ENTER |
Enter directory / open file |
← or h |
Go to parent directory |
HOME |
Jump to first item |
END |
Jump to last item |
PgDn |
Page down |
PgUp |
Page up |
Understanding the Interface
┌─────────────────────────────────────────────────────────┐ │ Path: /home/user/Documents (drwxr-xr-x...) [Tab: 1/3] │ ← Top bar (path + metadata) ├──────────────┬──────────────────────────────────────────┤ │ projects/ │ # My Projects │ │ photos/ │ │ │ > notes.txt │ This is the content of notes.txt │ ← Right pane (preview) │ todo.md │ shown with syntax highlighting... │ │ report.pdf │ │ │ │ │ └──────────────┴──────────────────────────────────────────┘ │ Status: 5 items │ ← Bottom bar (status) └─────────────────────────────────────────────────────────┘ Left pane ↑ Right pane ↑ (navigate) (preview)
Essential Operations
Viewing Files
- Preview: Content shows in right pane automatically
- Open in editor: Press
ENTERon text files - Open with default app: Press
xon files (xdg-open) - Toggle preview: Press
-to turn preview on/off - Toggle images: Press
_to toggle image display
Working with Files
Copy
- Tag files with
t(toggle tag on/off) - Navigate to destination directory
- Press
pto copy tagged items
Move
- Tag files with
t - Navigate to destination
- Press
Pto move tagged items
Delete
- Press
don item (or tag multiple withtfirst) - Press
yto confirm
Trash bin: Press Ctrl-d to enable trash bin. Deleted items go to ~/.rtfm/trash/ and can be restored with U (undo).
Rename
- Single file: Press
c, edit name, press ENTER - Bulk rename: Tag files with
t, pressE, use pattern
Bookmarks
Set bookmark:
- Navigate to directory
- Press
m - Press letter (a-z)
Jump to bookmark:
- Press
'(apostrophe) - Press bookmark letter
Special bookmarks:
'- Last directory (for quick toggling)0- Directory where RTFM started1-5- Last 5 visited directories
Getting Help
In RTFM
Press ? to show complete keyboard reference
Man Page
man rtfm
Version Info
Press v to see:
- RTFM version
- Image protocol in use
- Latest available version
Common Tasks
Browse Directory Tree
r # Launch RTFM h h h # Go up 3 levels ' h # Jump to home bookmark l # Enter directory
Find and Open File
r # Launch /pattern # Search for pattern n # Next match ENTER # Open file
Copy Files Between Directories
r # Launch m s # Bookmark source as 's' ' s # Jump to source t t t # Tag 3 files m d # Bookmark destination as 'd' ' d # Jump to destination p # Copy tagged files here
Remote File Management
r # Launch Ctrl-e # Enter remote mode user@server.com:/path # Enter connection # Navigate with arrow keys d # Download file Ctrl-e # Exit remote mode
Tips & Tricks
Speed Tips
- Turn off preview (
-) for faster directory traversal - Use bookmarks (
m+ letter) for frequent locations - Use tabs (
]to create) for multi-directory work - Recent files (
Ctrl-r) to jump to recently accessed files
Power User Tips
- Undo system -
Uundoes: delete, move, rename, copy, symlink, permissions, ownership - Pattern rename -
Efor bulk rename with regex - Command mode -
:to run any shell command, output in right pane - Ruby mode -
@to execute Ruby code (for debugging or scripting) - Git workflow -
Gshows git status, perfect for checking changes
Workflow Examples
Photo Organization
r → Navigate to photos → t t t (tag) → P (move to new folder)
Code Review
r → / .rb (search) → G (git status) → ENTER (open in editor)
Remote Backup
r → Ctrl-e → server:/backup → u (upload tagged files)
Next Steps
- Read Configuration Guide to customize RTFM
- Learn Remote Browsing for SSH workflows
- Explore Plugins to extend functionality
- Check Keyboard Reference for all keys
Troubleshooting
Images Don’t Show
- Check if w3m is installed:
which w3mimgdisplay - Check if xdotool is installed:
which xdotool - Press
vto see image protocol (should showw3morsixel) - Try toggling image preview:
_
Commands Don’t Work in Command Mode
Some commands need to be whitelisted as “interactive”:
- Press
+in RTFM - Type program name (e.g.,
htop) - Or prefix command with
§::§htop
Terminal Resize Issues
Press r to manually refresh RTFM layout
General Issues
- Press
rto refresh - Check
~/.rtfm/conffor misconfigurations - Report bugs: https://github.com/isene/RTFM/issues