Panels
The two panels
Each panel shows one directory. Tab moves between them; most operations go from the panel
with the cursor to the other one, which is what makes a two-panel manager faster than a tree:
the destination is already on screen.
Every drive keeps a current folder, as in DOS: choosing a drive in Alt+F1 takes the panel
to the folder the other panel is in on that drive, or else to the last folder either panel
was in there — C:\pippo, over to D:\pluto\paperino, and back to C: is C:\pippo
again — and to the root only when there is none or it is gone. Choosing the drive the panel
is already on still means its root. The folders are remembered from one run to the next.
Enter enters a directory or runs a file, Backspace or .. climbs. Alt+F1 and Alt+F2
open the change-drive dialog for the left and right panel, over the panel it belongs to: a
table of everything mounted — what each one is (disk, removable, optical, network, memory),
what it is called, what it is formatted as, how big it is and how much is left. Which of
those columns are drawn is yours to choose, with F9 inside the dialog — and so is which of
the panels that are not disks the list offers: a box for each (NetBox, processes, sockets,
installed programs, services, startup, external programs, the temporary panel, the wastebasket), so
the list holds only what you use.
Every drive is asked at once and the dialog waits for them a second and a half at most. A network drive whose server is not there can take many seconds to say so; it is listed with only its kind, and the status line names it and says how long the list waited. A folder that takes more than a second and a half to read is named there too, with the time — worth reporting if it happens where it should not.
A drive the other panel is already on opens where that panel is, not at the top of the
disk. Two panels on one disk is how one works on a disk — a tree on one side, a target on
the other — and landing on the root would mean walking back down a path that is already on
the screen. The drive a panel is already on still opens at its root: choosing it is how one
gets to the top in one keystroke. So is /, which is a prefix of every path there is and
would otherwise never mean the root again. A panel on a server, or showing one of the lists
below the rule, is not on a drive and lends nothing; a panel inside an archive lends the
directory the archive lives in, rather than a path that would open the archive again.
Under a rule, on Ctrl+1 to Ctrl+9, are the things that are not filesystems:
- the stored connections and the object stores written in the configuration, which connect when chosen;
- the processes running on the machine, as a panel — also
Ctrl+W, and Task list in the Commands menu, which is what that key means in FAR:F3on one is its card, which is a page — what it is, whose it is, its priority and session, when it started and for how long, what it has taken and spent (CPU times, handles, every memory counter, reads, writes and the rest of its input and output), its command line, its whole environment and every library it has loaded. On Windows the list and the card are read from the kernel's own table, so the system's processes have their memory too.F8orDelends the process under the cursor, after asking, with the cancel button lit; - the services the machine runs in the background, with the state of each and when it
starts (automatic, manual, disabled):
F3is its card,F4changes when it starts,F5starts it,F6restarts it andF8stops it — the last two ask first. Changing when it starts starts and stops nothing; macOS has no manual, only enabled and disabled. An action the system refuses is reported as needing root; this program will not ask for root on your behalf; - what starts at login (Startup), from every place the system keeps it — on Windows the
RunandRunOncekeys of the user and of the machine, the two Startup folders and the scheduled tasks that run at logon; on a Linux desktop theautostartfolders and the user'ssystemd --userunits; on macOS theLaunchAgentsandLaunchDaemonsfolders. Each row says whether it is on, where it comes from and what it runs; what is off is drawn dim.F3is its card,F4opens the file that defines it,F8switches it off or on again andShift+F8removes it after asking. Switching off deletes nothing: it is done the way the system's own tools do it (Task Manager's switch, aHidden=truecopy in your ownautostartfolder,systemctl --user disable,launchctl disable), so they show the same state. What belongs to the machine may need administrator or root to change, and is reported as such rather than asked for; - the registry, on Windows only: the five roots and the keys are folders, the values are
rows with their name (
(Default)for the unnamed one), type and data, and the size column is the length of the data.Entergoes into a key,..andBackspacecome out,Ctrl+\is the list of roots and the frame's title is the key.F3shows a value whole — text, a list one string a line, a number in decimal and hex, bytes as a dump.F4(orEnteron a value) edits it in a dialog fit for its type: text for a string, decimal or0xhex for aREG_DWORDorREG_QWORD(a number that does not fit is refused), a row a string for aREG_MULTI_SZ, pairs of hex digits for bytes.Shift+F4makes a value (name and type),F7a key,F6renames andF8deletes the value or key under the cursor — the question names it, says how many keys a key holds, and starts on Cancel.F5writes the selected keys, or the one under the cursor, to a.regfile regedit can read back. Before any change the key is exported toregistry-backups/beside the settings — the whole subtree for a delete or a rename of a key — in a file named after the key and the moment, and the status line says where; if that backup cannot be written the change is not made. A key you may not write (HKEY_LOCAL_MACHINEwithout elevation) says Access denied.Enteron a.regfile in an ordinary panel asks, saying what the file would write and delete, and imports it after backing up every key it touches; - the sockets, listening or connected, with the address at each end and the process
holding it, where
F3is that process's card; - the programs installed on the machine, with their version and publisher:
F3is the card, and choosing one puts its own uninstall command on the command line, unrun, for you to read before pressingEnter; - the external programs fcmd runs instead of doing the work itself —
7z,git, the decompilers,ffmpeg— each ticked or crossed by whether it is installed, with its version:F3is the card andF4installs a missing one, after showing the line it will run. Programs from elsewhere in the configuration chapter says why each is a program; - a temporary panel, which is a list rather than a directory:
Ctrl+Shift+Insadds what is selected to it from anywhere, and the files in it can come from a dozen directories at once; - the wastebasket: what was thrown away, each with the folder it was in, its size and
when it went.
F5puts back what is selected,F8deletes it for good andF7empties the lot — Deleting, and the wastebasket in the files chapter says the rest.
The same list can be filled by a command rather than by hand: Commands → Panelize a
command's output asks for a command line, runs it where the panel is, and takes every line
it prints as the name of a file. find . -newer Makefile, git ls-files, grep -rl TODO . —
anything in the shell that names files gives you a panel of them, and then F5, F6, F8
and the selection keys work on that list as on any other. A line naming something that is not
there is left out, and the status line says how many were. It is Midnight Commander's external
panelize, and the reason it is worth having is that the shell knows how to find things no
dialog of ours will ever ask about.
Ctrl+R inside the dialog reads the drives again, for a stick that was plugged in after it
opened. What the system runs on — anything under /proc, /sys, /dev, /run — is left
out of the table, because none of it is somewhere to put a file.
Looking at a directory
Ctrl+1 to Ctrl+5 choose how rows are drawn: brief, medium, full, wide, detailed. The
multi-column views run down a column and then across, as the originals do. The detailed view
adds, to what the full one shows, the date the file was made and the date it was last read,
and the attributes after them — on a panel too narrow for all of that the extra dates go
first, so the name stays readable. The full view draws
the extension against the size, as FAR does: names down the left, extensions down the right,
a short one starting where a three-letter one would and a long one reaching further left. A
folder with a dot in its name, a dotfile, a dot followed by a space (Mr. Smith) and a name
too long for the field keep their name whole.
Ctrl+8 shows who the files belong to: name, size, owner, group. The two names take the room
the date had, and on a narrow panel the group goes before the owner does. Finding out costs a
lookup per file — and on Windows a call that may reach a domain controller — so it is done in
the background and only while this view is the one on screen: the columns fill in a moment
after the listing, and a row nothing has come back for yet is blank. A panel on a server or
inside an archive has no owner to show.
Ctrl+9 puts how many names each file has beside it, which is how a hundred copies that are
really one file stop looking like a hundred files' worth of space, and Ctrl+0 is the full
view with the sizes written out digit by digit — 1 234 567 where the full view says
1.18 M — for when the difference between 1.2M and 1.9M is the thing you came to see.
Each of the ten is a list of columns you can rewrite: a [[column_set]] block in
fcmd.toml whose id is the view's own digit is what that view draws, with the columns,
widths, alignments and formats you choose — FAR's own Column types strings included. The
configuration chapter has the shape of it.
Ctrl+F3 to Ctrl+F11 sort: by name, extension, write time, size, unsorted, creation time,
access time, description and owner — all nine of FAR's keys. Choosing the order already in
force reverses it, and Ctrl+F12 offers them as a list. The last two sort by something the
listing does not carry, so they are fetched like the views that show them: the panel sorts
without them and sorts again when the answer lands, keeping the cursor on the file it was on.
A file nothing has said anything about sorts after every file that has.
Two files the sort key cannot separate are settled by panel.sort_chain in the
configuration — ["size", "name"] sorts by size and settles a tie by name — and the name has
the last word in any case, so the order never depends on the order a directory came back in.
Names are put in order the way a reader looks for them, not by the bytes they are stored in:
Éxtra.txt stands beside extra.txt and not after zorro.txt, straße is read as strasse,
æ as ae, ø as o, ł as l. Of two names that read the same, the plain one comes
first. Digits count as the number they spell (img2 before img10) unless Natural number order is turned off in F9 → Options → System settings, and the row under it, Upper and lower case in the sort, says whether Makefile and makefile are told apart: as this system
does it (they are on Linux, they are not on Windows and macOS), always, or never. These are
the Latin accents and not a language's own alphabet — Swedish puts ö after z, and here it
is with o; Greek, Cyrillic and the rest keep the order Unicode gives them. A name that is
not valid text keeps every byte it has and sorts after the names that are.
Shift+F11 — Group on the key bar — turns the sort groups on and off. They are bands
written in the configuration as [[sort_group]] blocks, each with a mask and a side, and they
pull some kinds of file in front of the listing and push others behind it whatever the sort
key is: sources first and build output last, in a directory that holds both. Inside a band the
ordinary sort still applies, folders keep their own place at the top, and reverse turns each
band round rather than swapping the bands over. With no blocks written the key says so.
You do not have to write them by hand: F9 → Options → Sort groups is the same list the
colour groups have — the bands in the order they cut the listing, Ins for a new one beside
the row you are on, Del to take one away, F4 to edit it, Ctrl+↑ and Ctrl+↓ to move one
past its neighbour. Both panels re-sort the moment you accept, and Save setup writes the
blocks into the configuration.
Space measures what a folder holds — and with something selected, every selected folder at
once, which is how you find out which of five trees is the big one. The figure then takes the
place of the word Folder in the size column, the totals bar at the bottom counts it, and
sorting by size puts that folder where it belongs. Re-reading the directory forgets it, since
the figure was about the directory as it was.
A folder with a network share or another disk mounted somewhere under it is measured with
everything on that share, which can take long and says little about the disk you are on.
Folder sizes stay on one file system, in F9 → Options → System settings
(panel.size_one_filesystem, off by default), stops the walk where another file system
begins, as du -x does: the mount point counts as empty. The disk usage list and its map
follow the same setting. It works on Linux and macOS; on Windows it changes nothing.
Alt+F10 finds a folder by name: a list of every folder this program knows under the root you
are on, which narrows as you type, and Enter goes there. It starts from what the tree has
read — kept between sessions — and reads the rest behind the dialog while you type. In the
copy dialog the same Alt+F10 fills the destination in.
Alt+Shift+F12 is for the folders you keep going back to. Every time a panel goes somewhere
it is counted, and this list puts the folders you use most and most lately at the top —
yesterday's project above last year's, without your keeping anything. Type a few letters of
the path, in order and from anywhere in it (fcsrc for work/fcmd/src), and Enter goes to
the best match, which is already under the cursor. Del takes a folder out of the list: one
that is gone, or one you only ever passed through. It is the third of three lists: Alt+F12
is where this panel has been, in order; Ctrl+D is the folders you chose to keep; this is
the one that keeps itself.
On a narrow screen — a phone held upright, a terminal split in two — two panels side by
side would each be too narrow to read a name in, so below 60 columns the screen shows one
panel, the one you are in, and Tab brings the other. A quick view (Ctrl+Q), an
information panel or a tree goes under the panel it is about instead. panel.single_below
sets the width (0: two panels at any width).
Ctrl+H shows the hidden files. Ctrl+P hides the panel you are not in, Ctrl+F1 and
Ctrl+F2 hide the left or the right one to give the other the whole screen, and Ctrl+O
takes both off to show what the commands have printed. With the panels off everything else
still works — the command line, the menus, the keys — and PgUp and PgDn turn pages through
the output; Ctrl+O brings the panels back. What needs a panel on the screen does not reach
the hidden one: Enter on an empty line does nothing, as in FAR, rather than open whatever the
cursor was left on. Ctrl+Shift+F finds text in that output: the
newest line that has it is shown, marked, with the panels out of the way, and asking again for
the same text goes on to the line before — the way to walk back through a build's errors. Past
the oldest it starts again from the newest, and says so.
The panels go off by themselves while a command runs, so what it prints can be watched
arriving line by line rather than turning up all at once at the end, and they come back when
it finishes. Ctrl+O gives the screen back early and the command carries on behind them;
Options → Interface → Show a command's output while it runs turns the whole habit off, and
the output still fills the screen as it is printed, for whenever you press Ctrl+O.
What runs the commands is one shell, kept for as long as the program is open. The line goes
into it as you typed it, which means what a command does outlives it: cd .. moves the panel,
an export is still set for the next command, a function you define is there to call, and an
alias of yours means what it means in your own shell — there is no second shell in between. It
works the other way round as well: move the panel and the shell comes along, so the next
command runs where you are looking. Ctrl+C on the output screen sends the interrupt to
whatever is running in it.
The shell is your own — $SHELL, or whatever [term] shell names — and bash, zsh, fish
and a plain sh can all be asked where they are, and so can PowerShell (pwsh or
powershell): a variable or a function one command sets is there for the next, and a cd
moves the panel. If PowerShell's marks do not come through — an old Windows 10 console can
drop them — it is given up after a few seconds, the status line says so, and each command
runs on its own as before. cmd.exe cannot be asked, so with it each command runs on its own;
nothing is half-done. Each is asked the way it
expects — cmd /C, PowerShell with -Command, the rest with -c — so with
shell = "pwsh" under [term] the command line is PowerShell's: its pipes, its cmdlets, its
quoting. Options → All parameters
→ term.subshell turns the kept shell off altogether, and term.follow_cwd turns off only
the following.
A program that takes the whole screen — another fcmd, far, mc, vim, nano, less,
htop, ssh, python — is given the terminal while it runs, the way FAR gives the console
away, and the panels come back when it ends: caught like other commands, it would never see a
key. The list is [term] interactive in fcmd.toml; tty:command gives the terminal to any
other line. A shell's name typed on its own — cmd, powershell, pwsh, bash, zsh — is
a shell to work in, as FAR opens one: the panels go, exit brings them back where they were.
With something after it (bash build.sh) it is an ordinary command.
If the shell [term] shell names is not installed — pwsh where only Windows PowerShell is —
every line says so, naming the shell and the setting, rather than failing under its own name.
Left / Right → Names code page… reads the names in this panel in a chosen code page. Every panel starts at as the system gives them, which on Linux and macOS means the bytes are taken as UTF-8 — and a name that is not UTF-8 comes out full of replacement characters. That happens to a tree copied off a Russian Windows, or unpacked from a zip that carried no code page: those bytes really are a name, in CP866 or CP1251, and the question marks are ours rather than the disk's. Choose the page and the names become readable.
Only the screen changes. The file each row stands for is still the file the system has, bytes and all, so opening it, copying it, renaming it and deleting it all work as they did — and the first row of the list takes you back to the system's own answer. On Windows there is nothing to choose: a name there is already text rather than bytes, and the menu says so. On macOS there is usually nothing to choose either — the system refuses to create a name that is not valid UTF-8 in the first place — so this is mostly a Linux question.
Ctrl+Alt+B is the branch view: every file under this folder, from all the folders below it,
in one list, each named by its path from here — src/deep/x.rs. The rows are the files
themselves, so F3, F5, F8 and the selection work on them wherever they are in the tree,
and sorting by name keeps each folder's files together. The same key goes back to the folder.
It works on a server, in a bucket and inside an archive, and stops at a hundred thousand files
rather than build a list nobody could read.
What a file is
A directory can keep a line about each of its files, in a plain file called descript.ion
beside them — FAR's habit, and 4DOS's before that. Ctrl+Z writes one: the dialog opens on
what the directory already says about the file under the cursor, and an empty answer takes the
line away. Ctrl+6 shows the names with their descriptions, Ctrl+7 adds the size and the
time, the information panel (Ctrl+L) spells out the one under the cursor, and the panel's
own status line shows it beside the size and the date. That line gives the size whole, in
bytes, as FAR's does; the column above it says it short.
The file travels with the directory, which is the point of it: a folder copied to a memory
stick takes its descriptions along. And a description follows its file: F5 writes one at the
other end as well, F6 takes it with the file, a rename takes it to the new name, and F8
takes it away — a description that outlived its file would land on the next file to be given
that name, even when the files came from several directories at once, as they do out of a
search result. All of it works on a server and in a bucket as well; inside an archive the line
is read but not written, because writing one there means building the archive again.
Options → Panel settings turns the whole habit off for somebody who keeps no descriptions.
A mask typed at + or - picks files and leaves folders alone, which is what one means by
*.rs; Masks select folders too in Options → Panel settings changes that. Select all
and invert all take folders either way, because they name no mask.
Ctrl+R re-reads. Ctrl+L turns the other panel into an information panel — what the device
holds and what is left on it, how big its clusters are and what they cost this directory, how
much memory the machine has, and the row under the cursor — Ctrl+Q into a
preview of the file under the cursor — or, on a folder, into the same block of device and
directory figures the information panel shows — Ctrl+T into a directory tree.
The preview is the viewer itself, with its frame taken off. While the files have the focus it
only follows the cursor; give it the focus with Tab and its keys are the reader's: F2
wraps, F4 walks text, dump, hex, document and table, Shift+F4 is hex and back, F5
disassembles, F6 decompiles, F7 searches, F8 changes the code page, Shift+F11 opens the
structure pane. The key bar says so while it has the focus. What you type still goes to the
command line. And beside a process, socket or programs list the preview holds that row's
card — the same page F3 opens there, which is longer than the panel and scrolls.
Inside an archive, a JSON file or a mail on this disk the preview shows the entry under the
cursor too, up to 4 MiB: it is read in the background and appears when it is ready, so the
cursor never waits for it. A large entry, a container that would have to be unpacked from the
start to reach it (a big .tar.gz or a solid 7z), an archive inside an archive, and anything
on a server say that the bytes are not here: F3 brings them out.
A local panel also re-reads itself: a file that arrives from a build, a download or another
program appears without being asked for, and the cursor stays on the name it was on. The
setting is Refresh the panel automatically in Options → Panel settings
(panel.auto_refresh); Ctrl+R is still there for a server, an archive, and the times a
watch has nothing to report.
A file that Enter goes into — an archive, a package that is a zip under another name
(.whl, .apk, .nupkg), a mail message or mailbox, an SQLite database, a JSON file — is
drawn in the archive colour, has a ▸ after its name, and the panel's status line says what
Enter will do with it: Enter: open as an archive (zip), Enter: open as a mailbox. A
.rar or an .iso counts only where 7-Zip is installed to read it. The mark is
Mark the files Enter opens in the same dialog (panel.mark_openable, on by default); a
[[mask_group]] called arc replaces the list, as for any other group.
Each folder keeps its own view and sort, in the same dialog (panel.remember_view, off by
default), gives every folder the view and the sort you last chose in it: a folder of photos
can stay in Brief by date while the rest stay as they are. A folder you never changed shows
what the panel had before it went into one that keeps its own.
Ctrl+← and Ctrl+→ move the line between the two panels. Ctrl+↑ brings the panels' bottom
edge up — they get shorter, and the rows they give up show the output of the last command,
which is how you watch a build go by without leaving the panels; Ctrl+↓ gives the rows back.
Ctrl+Alt+R undoes the lot: the line back in the middle and the panels at their full height.
In the Windows console FAR's own keys work too: Ctrl+Clear (the keypad's 5 with Num Lock off)
for the width alone, Ctrl+Alt+Clear for the height alone.
Both are settings, so Shift+F9 keeps them.
Ctrl++ and Ctrl+− ask the terminal for a larger or smaller font, and Ctrl+Alt+0 for the
one it started with — Ctrl+0 itself is the tenth view mode, as it is in FAR. Whether
anything happens is the terminal's business and not ours: a program in a terminal does not
own its font, it can only ask. xterm and the terminals that copy it
answer; on most others (GNOME Terminal, Konsole, Windows Terminal, alacritty, foot) those keys
are the emulator's own zoom and never reach us at all — which gets you the same thing by a
shorter road.
Alt+F9 is FAR's toggle of the window size: the window maximised, and Alt+F9 again gives it
back the size it had. On Windows the console's window is sized directly — in Windows Terminal,
the terminal's own window. Elsewhere the terminal is asked, as with the font: xterm and the
terminals that copy it do it, many others do not let a program touch their window, and the
status line says it asked rather than that it happened. In the editor Alt+F9 stays the list
of its commands.
Folders kept to hand
Ctrl+Shift+0 to Ctrl+Shift+9 put the directory you are in on a digit; Alt+0 to Alt+9
take you back to it. Ten of them, as FAR has — and Alt rather than FAR's right-hand control
key because no terminal can tell the two control keys apart.
A digit holds one folder: setting it again somewhere else moves it.
Ctrl+D opens the whole list, where Ins keeps the directory you are in, Del gives one up
and F4 gives it a name, so the list can read work, logs, server instead of three
paths. The ones with a digit come first, and the digit takes you there with one press.
A folder on a server or in a bucket can be kept like any other; going to it opens the connection first.
Tabs
A panel can hold more than one directory at a time. Ctrl+Alt+T opens another tab — on the
directory under the cursor if the cursor is on one, and otherwise on the one you are in, which
is a duplicate and what you want before going two different ways from the same place.
Ctrl+Alt+N and Ctrl+Alt+P step along the row, which is a ring: past the last tab is the
first one. Ctrl+Alt+W closes one. A panel always has a tab, so the last one stays.
A tab remembers everything the panel does — where it is, how it is sorted, what is selected, where the cursor is, where it has been — so coming back to a tab is coming back to the work you left in it.
Ctrl+Alt+M hands the tab to the other panel. It is a move: the tab leaves this side.
Ctrl+Alt+A lists every tab of the panel, numbered, with where each one is. Enter or the
number goes to one, and Ctrl+↑ or Ctrl+↓ moves the tab under the cursor along the row —
the order only: the tab you are on stays the one on screen.
Ctrl+Alt+K locks a tab to its directory. A locked tab will not go anywhere — not with
Enter, not with the history, not driven from the other panel — and says so when asked,
rather than doing nothing. It is marked in the row. The one thing that unlocks it is the
connection under it closing: a tab cannot keep a promise about a directory it can no longer
reach.
The Left and Right menus hold all of that, and Name this tab, which is how a row comes to
read src build logs instead of three directory names. An empty name takes it off again.
The row of tabs is only drawn by a panel that has more than one: one tab looks exactly as it always did, rather than costing a row of files to say that there is one tab.
Tabs come back when you start the program again, with their names and their locks. The directory the shell was in still wins for the tab you land on — that is what running a program in a directory means — unless that tab is locked. A tab that was on a server or in a bucket is not restored, because the connection it needs is not open yet.
A real terminal
The command line under the panels runs a command and keeps what it printed, which is what you
want nine times in ten. With something typed on it, ↑ and ↓ walk back and forth through
what was run before, as a shell does; on an empty line the arrows belong to the panel, as
every shared key does. Alt+F8 shows the whole history as a list — and so do Alt+F11 for the files you have read
or edited (where Ctrl+F10 takes the panel to the file, cursor on it) and Alt+F12 for the
folders this panel has been in. All three are lists you type
into — as every list in this program is: what you type narrows it, the frame says what it was,
Backspace takes a letter back, and Esc clears the filter before a second one closes the
list. Where the rows have keys of their own, as the drive dialog's letters do, those keys stay
theirs and Alt and a letter is the filter. Alt+← and Alt+→ slide long rows sideways —
a history of deep paths is wider than its box — and Alt+Home puts them back. Ins pins the row under the
cursor — a pinned row is marked with a *, and neither the size limit nor the lifetime can
push it out — Shift+Del takes one row out of the history for good, and Del empties the
list of everything you have not pinned, after asking. A line nobody has pinned and nobody has
used for ninety days goes by itself; Options → System settings is where that number lives.
A command typed with a space in front is not kept in the history — it runs, and neither
↑ nor Alt+F8 will offer it again: for the line with a password on it, as in bash. With the
panels on, type the command, then Home and Space, because Space on an empty line measures
a folder; with the panels off (Ctrl+O) the space is simply typed first. To keep every line,
set cmdline.history_ignore_space to false in Options → All settings.
Ctrl+Enter puts the name under the cursor on the line, Ctrl+Shift+Enter the other panel's,
Ctrl+[ and Ctrl+] the two panels' paths, Ctrl+Shift+[ and Ctrl+Shift+] the left and
right one's whichever has the focus, Ctrl+F the full name and Ctrl+Alt+F the full name in
the form another machine could use — a path on this disk has none, and the key says so.
While you type, the line offers what it could become: the names in the directory the panel is
showing, the lines you have run before, and the environment's variables. ↑ and ↓ walk the
list, Tab takes what is under the cursor, Esc closes it — and Enter still runs what you
typed until you have walked into the list, so the list is never in the way. Ctrl+Space asks
for it, and wakes the sources that wait to be asked: the executables on your PATH are the
one that does, because gathering them reads every directory on it.
Options → Interface is where each of the four sources is turned on, off, or set to answer
only when asked.
Shift with an arrow marks text out, Ctrl+Shift with one marks a word at a time, and
Shift+Home/Shift+End take it to either end. What is marked is drawn with its colours
swapped; Ctrl+Ins then copies that rather than the whole line, and typing or pasting
replaces it. Any arrow without Shift drops the mark.
The tenth is vim, top, ssh or anything else that draws a whole
screen and asks the system how big it is: those need a terminal, and Ctrl+Alt+E is one.
It is a screen like the viewer and the editor. Ctrl+Alt+E again goes back to the panels and
leaves the program running; F12 lists it among whatever else is open and brings it back;
pressing Ctrl+Alt+E from the panels brings a parked terminal forward rather than starting a
second one. A second one is that key again after parking the first, which is deliberate: a key
that quietly started a process every time you pressed it would leave a dozen shells behind in
a day.
Inside it, every key belongs to the program — F3 means what F3 means to whatever is
running, Tab completes, Ctrl+C interrupts. Exactly one key is ours, and it is the one that
got you in. There is no key bar for the same reason: a bar offering our keys in there would be
telling you something untrue.
The shell is the one your session already uses ($SHELL, or ComSpec on Windows), so your
aliases and your prompt are the ones you know. [term] shell in fcmd.toml names another,
as a command line: bash -l, or a path with spaces in quotes. It starts in the directory the
active panel is looking at, when that is a real directory — a panel inside an archive or on a
server has none, and the shell starts where the program did.
When the program ends, its last screen stays up to be read, and the next key closes it.
Choosing files
Insert selects the row and moves on; Shift+↓ does the same, and Shift+↑ selects and moves
up, for the keyboards that have no Insert. Gray + and Gray - select and unselect by a file
mask; Gray * inverts. Alt+letters finds a name as you type; Esc closes the box and leaves the cursor on the name it found.
The line Gray + asks for takes more than a mask. The masks come first, in the same grammar as
the filter — *.rs,*.toml, a group like <arc>, /^IMG_\d+/ for a regular expression — and
after them any of three conditions: size:100M- (from a hundred megabytes up; -4K is up to
four kilobytes, 1M-1G a range), age:>=30 (thirty days old and older; age:<=7 is the last
week, and age:created:<=7 asks the creation time instead) and attr:h (hidden; attr:-r is
not read-only). So *.log size:100M- age:>=30 selects the old big logs, and size:1G- alone
selects everything over a gigabyte.
Ctrl+Shift+I filters the panel with the same line, as you type it, and adds kind:file and
kind:dir: *.log size:100M- shows only the big logs, kind:dir only the folders. An empty
line takes the filter off. Ctrl+Alt+S is the menu of the filters you keep — [[filter]]
blocks in the settings, in the words of the colour groups — where Enter puts one on, Ins
writes a new one in a dialog, F4 changes one and Del takes it out; a filter written there
without a name is used once and not kept, and the first row takes the filter off.
What is selected is what the next operation acts on. With nothing selected it is the row under
the cursor — so F5 on one file copies that file, and nobody has to select it first.
When the function keys are taken
macOS keeps F9 and F10 for its windows, and some keyboards have no function keys at all.
Press Esc and then a digit within a second: Esc 1 … Esc 9 are F1 … F9, and Esc 0
is F10. On a Mac fn with the key works too, or System Settings → Keyboard → Use F1, F2,
etc. keys as standard function keys.
The mouse
Off until you ask for it, in F9 → Options → Interface settings, and the reason is worth
knowing: while a terminal is reporting the mouse it stops acting on it, so selecting text with
the mouse and the middle-click paste stop working. Those are your terminal's own tools and this
program cannot replace them, so it does not take them away unasked.
With it on: a click moves the cursor to the row and makes that panel the active one, a double
click is Enter on it, the right button selects a row, a drag from a row selects every row it
sweeps — it only ever selects, so the right button is what takes one out again — a drag on the
frame where the two panels meet moves the rule between them, a drag dropped on the other
panel opens the copy dialog with that destination already filled in (it copies nothing by
itself — the dialog and its Esc are still there), and the wheel scrolls whatever is
under the pointer — three rows a notch, without taking the focus, so you can read the other panel
without leaving this one. How many rows a notch moves is yours to set, and separately for the
panels, the viewer and the editor: All settings has ui.wheel_lines, ui.wheel_lines_viewer
and ui.wheel_lines_editor. The sideways wheel, if your mouse or trackpad has one, scrolls a
long line in the viewer or the editor; over a panel it does nothing, because a panel's columns
are a layout rather than a window onto something wider. The key bar always shows all twelve function keys, with the ones a
screen has no use for left empty, so F5 is the fifth box along wherever you are. It is
clickable (hold Shift and click for Shift+F5), so
is the menu bar and a dialog's list. A click outside an open dialog does nothing at all.
The window's title
The title of the terminal's window — or of its tab — says where you are: the folder of the
panel with the focus, and in the viewer or the editor the file that is open, followed by
- fcmd. It follows you as you move, so several terminals each running the program can be
told apart from the row of tabs. On the way out the title you had before comes back, where
the terminal keeps one to give back (xterm and those that follow it); elsewhere your shell's
next prompt writes its own.
If you name your tabs yourself and want them left alone, turn off Show where we are in the
terminal's window title in F9 → Options → Interface settings — ui.window_title in the
settings file. A name with odd characters in it cannot do anything to the terminal through
the title: control characters are sent as spaces.
Copying and pasting text
Ctrl+Ins copies the names of what is selected — one per line — and Alt+Shift+Ins copies
them with their whole paths. With something on the command line, Ctrl+Ins copies that line
instead — or the part of it marked with Shift and the arrows: the same rule as every other
shared key, which belongs to the panel only while the line is empty. Ctrl+C does the same as
Ctrl+Ins, for the keyboards that have no Ins; while a command is running it is the
interrupt instead, and only that.
The copying is done by your terminal, through a request called OSC 52, and that is why it
also works over ssh: the clipboard that fills is the one on the machine you are sitting at,
not the one on the machine the program runs on. A terminal that does not understand the
request ignores it, and it cannot answer either way, so what you are told is what was copied —
not that the clipboard took it. F9 → Options → Interface settings turns it off.
Alt+Ins copies a piece of the screen instead, which is the answer for everything the
program drew and has no file behind it: a process card, a help page, a hex dump, the sentence
a comparison ended with. It holds the screen as it is and puts a cursor on it: the arrows
move, Shift with them marks a rectangle from where the cursor already was, Ctrl+A marks
the whole screen, Enter or Ctrl+Ins copies and closes, and Esc closes and copies
nothing. With nothing marked it takes the row the cursor is on. Trailing blanks come off each
line, because a rectangle round a short line is mostly blanks.
Pasting is your terminal's key, not ours — Shift+Ins or Ctrl+Shift+V in most of them —
and the text arrives here in one piece rather than as a run of keystrokes. The editor takes
all of it, newlines and all; the command line, a dialog row and a prompt are one line each, so
they take the first line and say how many more there were. A command copied from a web page
comes with its newline still attached, and running it before you have read it is exactly what
that rule avoids.
Dialogs
A dialog is a framed list of rows above a row of buttons. A square box [x] is a yes or no of
its own; a round one (•) is one answer of a group, where picking it puts the rest of the
group out; a row ending in ↓ holds a list of values that Space and the arrows walk; a
[?] is a box asked of several files that do not agree about it, and left as it is it changes
none of them.
↑ and ↓ move between the rows. Tab walks the whole dialog and comes round again — the
rows, then the buttons, then the first row — and Shift+Tab walks it backwards, so the key
out of the first row is the way out. Enter answers the dialog wherever the cursor is, F10
is OK from anywhere, and Esc throws it away.
A row that names a path completes on Tab, as a shell does, and Ctrl+↓ opens what has been
typed into that row before. Alt+↓ on a row of choices lists all of them to pick from.
Ctrl+A selects the whole line of a text row: what you type or paste next replaces it, Del
clears it, Ctrl+C or Ctrl+Ins copies it and Ctrl+X cuts it. Alt+F10 on such a row opens something to pick it from: the folder
tree for a row that wants a folder — a copy's destination, an extraction's folder — and the
directory itself for a row that wants a file, such as a connection's key file. In that list
Enter on a directory goes into it and Enter on a file is the answer; Esc leaves the row
as it was. Ctrl+F5 hands the arrows to the dialog itself, for when it
covers the one thing you need to read; Enter and Esc only stop moving it.
The bottom row of the screen becomes the dialog's own while it is open: the panels' keys are
not on the screen, so it would be describing something that is not there. Most of its boxes
are empty, because a dialog is answered with Enter and Esc — F1 is this page, F10 is
OK, and Ctrl shows the key that moves it. F1 leaves the dialog waiting behind the help, with everything you
typed into it still there.
Names that are not what they look like
A name with an invisible character that changes the direction of the text — the trick that
makes invoicefdp.exe look like invoiceexe.pdf — shows that character as �, so a program
cannot pass for a document.