← XeFM English | 日本語 · crftwr/xefm on GitHub · craftware

Flat View

English | 日本語

Flat view swaps the pane’s listing for every file below the current directory, in one flat list. Run it again to go back.

Action Menu
flat_view View → Flat View

Keys depend on your keymap preset — see Keymap Presets. It is also in the command palette (Tools → Command Palette…).

Photos/                          2024/trip/a.jpg
  2024/trip/a.jpg       →        2024/trip/b.jpg
  2024/trip/b.jpg                2025/c.jpg
  2025/c.jpg                     notes.txt
  notes.txt

What it is for

Anything you can do with a list works on the whole tree at once:

You can also view, edit, rename, delete, compare and get details as usual.

What is in the list

Flattening only part of the tree

If items are selected when you turn on flat view, only those are flattened. Each selected directory contributes everything below it, and each selected file appears as itself. To flatten the whole directory, clear the selection first (Select → Clear Selection).

Large and remote trees

The progress dialog counts the files as they are found, and Esc stops the walk. Stopping leaves the pane as it was rather than showing part of the tree. Flat view works under ssh://, s3:// and inside archives, the same as any other location.

Going back

View → Flat View again, or Backspace, returns to the directory with the cursor on the item it was on.

Things to know

Changing the key

KEY_BINDINGS['flat_view'] = ['Ctrl-B']

Inside tmux, Ctrl-B is tmux’s prefix key and never reaches XeFM, so choose another key there. See Key Bindings.