Skip to content

Instantly share code, notes, and snippets.

@vbrozik
Last active July 17, 2023 12:55
Show Gist options
  • Save vbrozik/e3df51b78945c0391be3f48d53d7d519 to your computer and use it in GitHub Desktop.
Save vbrozik/e3df51b78945c0391be3f48d53d7d519 to your computer and use it in GitHub Desktop.
Terminal apps - keyboard shortcuts

Terminal applications - keyboard shortcuts

Conventions and general notes

  • Mod1+Mod2+key - modifier key 1, modifier key 2, key pressed at the same time
  • key_comb1, key_comb2 - sequence of key combination 1 followed by key combination 2
  • Normally Alt+key works the same as Esc, key (pause after Esc must not be long)
    • In the descriptions Alt+key is preferred
  • Alt is also called Meta

Midnight Commander

  • directory navigation
    • Alt+i - change the other panel to the same directory as the active panel
    • Alt+o - change the other panel to the directory at the cursor
    • Ctrl+\ - open the directory hotlist
    • cd - - change to the previous directory (remembers directories changed in the TUI)

Bash

  • history navigation
    • Ctrl+r - reverse search
    • Ctrl+s - forward search (must disable stop)
  • completion
    • Tab
    • https://superuser.com/questions/1486367/bash-autocomplete-with-wildcard bind -p | grep glob-
    • Alt+g - glob-complete word - replaces wildcarded name with common start of the available expansions (never expands to multiple names!), then completes like Tab
    • Ctrl+x,* - glob-expand word - expands wildcarded word to multiple words
    • Ctrl+x,g - glob list expansions - like Ctr+x,* but only lists the expansions, does not replace the wildcarded word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment