RTFM Keyboard Reference

March 7, 2026 · View on GitHub

Complete keyboard shortcut reference organized by category.

Quick access: Press ? in RTFM for built-in help.

Basic Keys

KeyAction
?Show help text
vShow version and image protocol
rRefresh display (terminal resize)
RReload configuration
WWrite config to ~/.rtfm/conf
CShow current configuration
qQuit and save
QQuit without saving

Basic Movement

KeyAction
j / Move down one item
k / Move up one item
h / Go to parent directory
l / / ENTEREnter directory or open file
HOMEJump to first item
ENDJump to last item
PgDnPage down
PgUpPage up

Directory Navigation

KeyAction
~Jump to home directory
' + letterJump to bookmark
>Follow symlink to target
Ctrl-rShow recent files/directories

Marks & Bookmarks

KeyAction
m + letterSet bookmark (a-z)
m + - + letterDelete bookmark
MShow all bookmarks
' + letterJump to bookmark

Special bookmarks:

  • ' - Last visited directory
  • 0 - Launch directory
  • 1-5 - Last 5 visited (auto-managed)

Tagging

KeyAction
tTag/untag current item
Ctrl-tTag items matching pattern
TShow tagged items list
uUntag all items

Pattern examples:

  • . - Tag all items
  • *.txt - Tag all .txt files
  • test.* - Tag files starting with "test"

File Operations

Copy & Move

KeyAction
pCopy tagged items here
PMove tagged items here
sCreate symlinks to tagged items

Rename

KeyAction
cRename single item
EBulk rename tagged items (patterns)

Bulk rename patterns:

  • s/old/new/ - Replace text
  • PREFIX_# - Add prefix with counter
  • upper / lower - Change case

Delete

KeyAction
dDelete (trash if enabled)
DEmpty trash directory
Ctrl-dToggle trash on/off
UUndo last operation

Undo works for:

  • Delete (from trash)
  • Move
  • Rename
  • Copy
  • Symlink
  • Bulk rename
  • Permissions
  • Ownership

Permissions & Ownership

KeyAction
Ctrl-pChange permissions
Ctrl-oChange ownership (user:group)

Permission Formats

FormatExampleDescription
Octal755rwxr-xr-x
Fullrwxr-xr-xExplicit permissions
ShortrwxApply to all (user, group, other)
Add+xAdd execute for all
Remove-wRemove write for all
Combined+rwAdd read and write

Search & Filter

Filtering

KeyAction
fFilter by extension
FFilter by regex pattern
Ctrl-fClear all filters

Examples:

  • ftxt - Show only .txt files
  • fpdf,png,jpg - Show PDFs and images
  • Ftest.*\.rb - Show test*.rb files

Searching

KeyAction
/Search and highlight
nNext match
NPrevious match
\Clear search

Finding Files

KeyAction
gGrep content in files
LLocate files (then # to jump)
Ctrl-lFuzzy find with fzf

Display Options

Layout

KeyAction
wChange pane width ratio
BCycle border styles
-Toggle preview on/off
_Toggle image preview
bToggle syntax highlighting

Pane widths:

  • 2 = Narrow left (20%)
  • 5 = Balanced (50%) - default
  • 7 = Wide left (70%)

Border styles:

  • 0 = No borders
  • 1 = Right pane only
  • 2 = Both panes
  • 3 = Left pane only

File List Options

KeyAction
aShow/hide hidden files
AToggle long info (ls -l)
oChange sort order
iInvert sort order
OShow current sort command

Sort orders (cycle with o):

  • Name
  • Size
  • Time
  • Extension

Right Pane Controls

KeyAction
ENTERRefresh right pane
Shift-↓Scroll down one line
Shift-↑Scroll up one line
TAB / Shift-→Page down
Shift-TAB / Shift-←Page up

Clipboard Operations

KeyAction
yCopy path → primary selection (middle-click paste)
YCopy path → clipboard (Ctrl-v paste)
Ctrl-yCopy image to clipboard (or right pane text)

Image clipboard: When viewing an image, Ctrl-y copies the actual image file - paste into GIMP, Inkscape, etc.

Tab Management

KeyAction
]Create new tab (current directory)
[Close current tab
JPrevious tab
KNext tab
}Duplicate current tab
{Rename current tab
1-9Switch to tab number

Tab indicator: Top-right shows [2/5] (tab 2 of 5)

Archives

KeyAction
EnterBrowse archive as virtual directory
xOpen archive with external program (bypass browsing)
zExtract tagged archive to current directory
ZCreate archive from tagged items

Inside archive browsing mode:

KeyAction
dDelete entry from archive
DExtract entry to origin directory
pAdd pre-tagged local files into archive
tTag/untag entries for bulk operations
LEFTGo to parent directory / exit archive

Supported formats: .zip, .tar.gz, .tar.bz2, .tar.xz, .rar, .7z

Git Operations

KeyAction
GShow git status for current directory
HCryptographic hash of directory tree

Hash feature:

  • First run: Creates hash
  • Subsequent runs: Compares and reports changes

OpenAI Integration

KeyAction
IGet AI description of file
Ctrl-aStart AI chat session

Requirements:

  • ruby-openai gem installed
  • API key in config: @ai = "sk-..."

Chat features:

  • Persistent context during RTFM session
  • Specialized for file/directory questions
  • Press ESC to exit chat

System Operations

KeyAction
SShow comprehensive system info
eShow detailed file properties
=Create new directory
XCompare two tagged files
Ctrl-nInvoke navi cheatsheet tool

Command Mode

KeyAction
:Enter command mode
;Show command history
@Enter Ruby debug mode
+Add program to interactive whitelist

Command Mode Features

Execute commands:

:ls -la
:git status
:grep -r pattern .

Force interactive mode:

:§htop        # Full-screen htop
:§vim file    # Full-screen vim

Output: Displayed in right pane

Ruby Debug Mode

Press @ to enter Ruby REPL:

# Inspect variables
puts @selected
puts @tagged.inspect
puts @marks

# Execute Ruby code
Dir.pwd
@files.size

Useful for plugin development and debugging.

Remote Mode Keys

(Only active when in remote mode - press Ctrl-e)

KeyAction
Ctrl-eToggle remote mode
Navigate files
hParent directory
ENTERShow file info
DDownload file
uUpload tagged files
sOpen SSH shell

Special Key Combinations

Multi-Key Sequences

SequenceAction
m → letterSet bookmark
' → letterJump to bookmark
m- → letterDelete bookmark
Ctrl-t → patternTag by pattern

Contextual Keys

Some keys behave differently based on context:

d key:

  • Local mode: Delete
  • Remote mode: Download

key:

  • On directory: Enter directory
  • On file: Open file
  • Remote mode: Show file info

Ctrl-y key:

  • On image: Copy image to clipboard
  • On text: Copy right pane text

Quick Reference Card

Keyboard cheat sheet

Customization

All keys can be remapped in ~/.rtfm/plugins/keys.rb

Example:

# Swap j and k
KEYMAP['j'] = :move_up
KEYMAP['k'] = :move_down

See Plugins Guide for details.


← Remote Browsing | Next: Plugins →