Bast
Hosts

Files

Browse local and remote files over SFTP, transfer between panes, and open a shell in the current directory.

The Files tab is a dual-pane browser. Each pane can be local or remote, in any combination (local↔local, local↔remote, remote↔remote). Press 5 to open Files. Both panes start on the host picker. Press F on a host from Hosts to connect that host on the right pane. The other pane stays on the picker until you choose it.

Pane modes

ToneMeaning
No titleHost picker. Choose Local or a host
Slate label localThis machine, after you choose Local
Teal host nameConnected over SFTP
KeyAction
L / RMake the focused pane local / remote
wSwap left and right panes
h / ←Parent directory, or collapse a group in the host picker
l / →Enter the selected directory, or open the picker row
g / GTop / bottom of list
Ctrl+FEdit path (or search hosts on a picker)
fFuzzy jump (type to filter, then a label letter to land)
DReturn the focused pane to the host picker

Connecting

Both panes open on a host picker, with no local or remote title. Local is the first row. Under it, groups match the Hosts tab, including icons, colours, and collapse. Enter or → on Local makes that pane local and titles it local, with the path beside it. Enter or → on a host connects it and titles the pane with that host's name. Enter toggles a group: it expands a collapsed group and collapses an open one. → expands a collapsed group and leaves an open one as it is. Left collapses a group, or moves to its parent when it is already collapsed. Space toggles the group. Collapse is shared with Hosts. L opens the local directory directly. R opens the picker from that directory. D does the same, and it also disconnects a connected host back to the picker. Ctrl+F on a picker searches hosts and shows the query in place of a title.

Bast prepares cloud access the same way as a normal connection, then opens OpenSSH SFTP (ssh -s sftp).

SFTP uses BatchMode for key-based hosts, so passphrase and host-key prompts cannot interrupt the TUI. Hosts with a stored password use askpass. Password-only hosts without a stored password leave BatchMode off so OpenSSH can prompt on the TTY. If connect fails, unlock the key with ssh-add, or Connect once from Hosts to accept the host key, then retry.

KeyAction
↑ / ↓ or j / kMove
EnterEnter directory, connect the selected host, choose Local, or toggle a group
→Enter directory, connect the selected host, choose Local, or expand a group
h / ← / BackspaceParent directory, or collapse a group / move to its parent in the picker
TabSwitch pane
Ctrl+FJump to a typed path (or search hosts)
.Toggle hidden files
␣Toggle mark
vStart or finish a range mark
fFuzzy jump

Click a pane to focus it, a row to select it, and the same row again to enter a directory or connect a host. Click the path header to edit the path once a pane is local or connected. On a picker, Ctrl+F searches hosts. Scroll wheel moves the pane under the pointer.

Fuzzy jump

Press f on a file list. Entries go muted until you type. Matches light up and get a letter label (a, s, d, …). Keep typing to narrow, or type a label letter to jump there (flash-style). Esc cancels.

Copy and move always target the other pane’s current directory.

Transfers and edits

KeyAction
cCopy marked items (or the cursor row) to the other pane
mMove (copy, then delete source)
dDelete (confirm by typing the name, or DELETE for a batch)
aCreate directory
rRename
iFile info (name, type, size, mode)
oPreview the cursor file (text, JSON, PDF)
pChange permissions (chmod) on local or remote items
esc / xCancel an in-progress transfer

File info

Press i on the cursor row. The focused pane shows name, type, size, mode (octal and symbolic), and modified time. j/k move to the next or previous item while info stays open. p jumps into the permissions editor. i or Esc closes.

Preview

Press o, or Enter on a file. A floating panel shows the contents. Text and JSON are shown as text (JSON is indented). PDFs show extracted text, not rendered pages. Images and binaries show type and size only.

KeyAction
j / kScroll
[ / ]Previous / next file
o / Esc / qClose

l still enters directories only. Space still marks. Preview reads a prefix of text files (512 KB) and will not download PDFs larger than 8 MB.

Permissions

Press p on the cursor row or marked items. The focused pane opens an inline permissions grid for Owner / Group / Other with Read / Write / Exec. The current mode seeds the checkboxes.

KeyAction
← → ↑ ↓ or h j k lMove across the grid
Space or xToggle the focused bit (or recursive / octal focus)
0-7Set the current class (owner/group/other) to that octal digit
u g oJump to Owner / Group / Other
/Edit the octal mode directly
EnterApply
EscCancel

When any selected path is a directory, a contents option appears. Turn it on to apply the mode recursively (symlinks are skipped while walking).

Works the same on local and remote panes. The other pane stays visible while you edit.

Open a shell here

Press t on a local pane for $SHELL in that directory, or on a connected remote pane for ssh with cwd set (host RemoteCommand is cleared for this jump). On a host picker, t opens a normal SSH session for the selected host.

What this is not (yet)

Deferred for later:

  • Fuzzy find across the whole tree (current f jump is per-pane listing)
  • Directory sync / mirror
  • Trash / undo
  • chown UI
  • Shared ControlMaster connections

Native OpenSSH

Transfers use your system ssh binary and the same SSH config as Connect, including ProxyJump and cloud ProxyCommand tunnels.

On this page