Community sheets

Shell line editing keyboard shortcuts on macOS

A community-written cheat sheet for Shell line editing, which has no macOS menu bar for Keysi to read. Once imported, hold ⌘ while it is in the foreground and these shortcuts appear.

20 shortcuts · free, and not part of Keysi Pro · public domain (CC0).

Moving (⌥ needs Option as Meta in your terminal)

ActionKeys
Start of the line⌃A
End of the line⌃E
Back one character⌃B
Forward one character⌃F
Back one word⌥B
Forward one word⌥F

History

ActionKeys
Previous command⌃P
Next command⌃N
Search history⌃R

Editing

ActionKeys
Delete the character under the cursor (exits on an empty line)⌃D
Delete the word before the cursor⌥⌫
Delete the word after the cursor⌥D
Cut from the cursor to the end of the line⌃K
Paste what you last cut⌃Y
Cycle through earlier cuts after pasting⌥Y
Swap the two characters around the cursor⌃T
Swap the two words around the cursor⌥T
Uppercase the word⌥U
Capitalise the word⌥C
Clear the screen⌃L

Use this sheet

  1. Download Shell line editing (Emacs keys) below: a small JSON file.
  2. In Keysi, open Settings ▸ Sheets ▸ Import Sheet… and choose the file, or drop it onto the Sheets list.
  3. Keysi shows the sheet's name, the app it applies to and its shortcut count. Confirm, and it is saved to your Sheets folder.

Nothing is installed from this page: it only gives you a file, and Keysi asks before it saves it. If you already have a sheet with the same identifier, Keysi offers to replace it or keep both.

Matches the program in a terminal's foreground: bash, zsh, fish. Keysi checks the terminal's foreground job, so the sheet appears while you're actually in it.

Shortcuts taken from the tool's documentation: tiswww.case.edu · zsh.sourceforge.io · fishshell.com. Check them against your own configuration, since a tool you have remapped is no longer on its defaults.

Download the Shell line editing sheet (JSON) Get Keysi — free

More community sheets