Lochan

Docs / Key bars

Customize the key bars

Put the keys you actually press where your thumb is, and add your own for the commands you send all day.

A phone keyboard has no Esc, no Ctrl, and no arrows. When you open a pane, Lochan adds two rows of soft keys under the terminal. They stay put whether the keyboard is up or down. Both rows are yours to arrange.

The two rows

Any key can live on either row, but only on one at a time. The colour is how you tell the rows apart, since they hold the same kinds of keys.

A live terminal with the amber top row (Enter, Esc, Tab, arrows, ^r) and the bottom row (/compact, sonnet, /usage, mic, attach, write)

Top row in amber, bottom row under it.

The built-in keys

The attach menu over a pane: Photo Library, Take Photo, Files

Attach

The dictation row holding a transcript with cancel and send

Mic: check it, then send.

Arrange the rows

  1. Open Key Bars

    In any pane, scroll the bottom row to its end and tap the gear. The Key Bars sheet lists the top row, then the bottom row.

  2. Turn keys on or off

    Use the switch next to a key. A key that is off keeps its place, so turning it back on puts it where it was.

  3. Reorder and move keys

    Press a key's grabber and drag. Inside its own row it reorders. Drag it into the other row to move it there. The list rearranges live under your finger. To put a key back on a row you emptied, drop it in the space under that row.

Reset to Defaults restores the factory rows: Enter on top, everything else below. Your custom keys are kept and go to the end of the bottom row.

The Key Bars sheet: Top row and Bottom row, each key with a switch and a grabber

Key Bars

The bottom of the Key Bars sheet: Add Custom Key and Reset to Defaults

Add Custom Key and Reset.

Add your own keys

Tap Add Custom Key in the Key Bars sheet. A custom key sends one of two things.

A key is labelled with what it sends unless you give it a Cap Label. New keys land at the end of the bottom row. From there they behave like any built-in key: drag them, move them to the top row, or switch them off. Tap a custom key's pencil to change it or to Delete Key.

Editing a Text key: /compact with Press Enter after on

A Text key.

Editing a Chord key: Control on, character r, sends 0x12

A Chord key, with the bytes it sends.

Keys for one agent only

Claude, Codex and the other agents each have their own commands. Under Show On, turn off All Agents and pick the agents the key is for. The list offers Claude, Codex, Grok and Shell, plus any other agent running on the host, and starts with the agent of the pane you came from.

Now /compact appears only on Claude panes and /status only on Codex panes. A hidden key still holds its slot, so moving between a Claude pane and a Codex pane never reshuffles the keys they share. The Key Bars sheet lists every key and names the agents a scoped key is for.

Show On with All Agents off and Claude checked

Show On: Claude only.

Where this is stored

Your rows and custom keys are saved on this phone and apply to every host. Nothing is written to the host.

See also Get around the Herd and Organize workspaces with categories.