A list of all the terminal hotkeys and their uses
Pressing tab
provides autocompletion suggestions. Suggestions can come in one of two formats:
While the autocompletion suggestions are open, the following keys are assigned roles:
left
, right
, up
, down
): highlight different suggestionstab
: highlight the next suggestionshift
+tab
: highlight the previous suggestionenter
/ return
: this selects the highlighted autocompletionesc
: closes the suggestions without selecting onectrl
+f
: fuzzy find in the suggestionsf1
: show / hide autocomplete preview box. This will hide your terminal output while enabled. The preview box supports additional key bindings (see below)f9
: show the command line preview box. This will output the contents of your command pipeline (see below)Pressing ctrl
+f
either from the prompt, or while the autocomplete suggestions are open, will open up the fuzzy find dialog to search through available suggestions. This can also be used to quickly jump to specific sub-directories.
Your typed search terms will appear in the hint text.
By default the fuzzy finder will look for any item that includes all of the search words. However the search behavior can be changed if the first search term is any of the following:
or
: show results that match any of the search terms. eg or .html .txt
will match both markdown and txt files (when finding files in completion suggestions).!
: only show suggestions that do not match any of the search terms. eg ! .html .txt
will match all files except markdown and txt files (when finding files in completion suggestions).g
: show only results that match a shell glob. eg *.txt
. This mode is automatically assumed if you include an abstricts in your search term.rx
: use a regexp pattern matcher instead of any fuzzy search. Expressions will be case insensitive and non-greedy by default.Aside from globbing matches, searching in fuzzy finder is not case sensitive.
While the fuzzy finder is open, the following keys are assigned roles:
left
, right
, up
, down
): highlight different suggestionstab
: highlight the next suggestionshift
+tab
: highlight the previous suggestionenter
/ return
: this selects the highlighted autocompletionesc
: cancel searchf1
: show / hide preview box. This will hide your terminal output while enabled. The preview box supports additional key bindings (see below)f9
: show the command line preview box. This will output the contents of your command pipeline (see below)The autocomplete preview is a way of quickly examining the contents of a function, man page, text file or even image, based on what autocomplete suggestion is highlighted. (read more)
While the preview box is open, the rest of your terminal output will be hidden. However once you close it, that output will reappear.
While the preview box is open, the following keys are assigned roles:
f1
or enter
: closes the preview boxf9
switches to command line previewpage up
scroll up the contents of the preview box, one page at a timectrl
+arrow up
scroll up the contents of the preview box, one page at a time (IBM keyboard layouts)option
+arrow up
scroll up the contents of the preview box, one page at a time (Apple keyboard layouts)page down
scroll down the contents of the preview box, one page at a timectrl
+arrow down
scroll down the contents of the preview box, one page at a time (IBM keyboard layouts)option
+arrow down
scroll down the contents of the preview box, one page at a time (Apple keyboard layouts)home
scroll up to start of previous section or start of documentend
scroll down to start of next section or end of documentThe command line preview enables you to view the output of a command pipeline interactively while you type it. (read more)
While the preview box is open, the rest of your terminal output will be hidden. However once you close it, that output will reappear.
While the preview box is open, the following keys are assigned roles:
f1
or enter
: closes the preview boxf9
re-runs the command line and thus updates the contents in the preview framepage up
scroll up the contents of the preview box, one page at a timectrl
+arrow up
scroll up the contents of the preview box, one page at a time (IBM keyboard layouts)option
+arrow up
scroll up the contents of the preview box, one page at a time (Apple keyboard layouts)page down
scroll down the contents of the preview box, one page at a timectrl
+arrow down
scroll down the contents of the preview box, one page at a time (IBM keyboard layouts)option
+arrow down
scroll down the contents of the preview box, one page at a time (Apple keyboard layouts)home
scroll up to the previous sectionend
scroll down to the next sectionThis displays up your timestamped shell history as an autocomplete list with fuzzy find activated. Using ctrl
+r
you can rapidly rerun previous command lines.
From here, the usual autocomplete / fuzzy find hotkeys apply. Such as pressing esc
to cancel history completion.
If the prompt line is not empty, then the current line is included in the history search.
These are the various hotkeys and editing modes available in Murex’s interactive command prompt.
left
and right
: move the cursor forwards or backwards in lineup
and down
:
up
or down
keys will search through your history of past command lines that are similar to your current command line.up
or down
keys will search through every command line in your history.alt
+b
: jump backwards a word at a time (Emacs compatibility)ctrl
+left
: jump backwards a word at a time (IBM keyboard layouts)option
+left
: jump backwards a word at a time (Apple keyboard layouts)alt
+f
: jump forwards a word at a time (Emacs compatibility)ctrl
+right
: jump forwards a word at a time (IBM keyboard layouts)option
+right
: jump forwards a word at a time (Apple keyboard layouts)ctrl
+a
: jump to beginning of linehome
: jump to beginning of linectrl
+e
: jump to end of lineend
: jump to end of linectrl
+z
: while readline is open will undo the previous key strokesctrl
+k
: clears line after cursorctrl
+u
: clears the whole linePressing esc
while no autocomplete suggestions are shown will switch the line editor into vim keys mode.
Press i
to return to normal editing mode.
a
: insert after current characterA
: insert at end of lineb
: jump to beginning of wordB
: jump to previous whitespaced
: delete modeD
: delete characterse
: jump to end of wordE
: jump to next whitespaceh
: previous character (like left
)i
: insert modeI
: insert at beginning of linel
: next character (like right
)p
: paste afterP
: paste beforer
: replace character (replace once)R
: replace many charactersu
: undov
: visual editor (opens line in $EDITOR
)w
: jump to end of wordW
: jump to next whitespacex
: delete charactery
: yank (copy line)Y
: same as y
[
: jump to previous brace]
: jump to next brace$
: jump to end of line%
: jump to either end of matching bracket0
to 9
: repeat action n times. eg 5x
would delete (x
) five (5
) charactersshift
+f1
recalls the first wordshift
+f2
recalls the second wordshift
+f12
recalls the twelfth wordIn the following example, code inside square brackets represent key presses rather than text:
» echo two three four five six seven eight nine
two three four five six seven eight nine
» [shift+f1]echo [shift+f5]five
While processes are running, the following keys are assigned roles:
ctrl
+c
: kill foreground process. Pressing this will send a kill (SIGINT) request to the foreground processctrl
+\
: kill all running processes in current shell session, including any background processes too. This hotkey is a effectively an emergency kill switch to bring you back to the command prompt should ctrl
+c
prove ineffective. Use this sparingly because it doesn’t allow processes to end gracefullyctrl
+z
: suspend foreground process. This will take you back to the prompt and from there you can then use job control to resume execution in either the foreground or background. (read more)Pressing ctrl
+c
while on the prompt will clear the prompt. This is similar to ctrl
+u
.
Pressing ctrl
+d
on an empty prompt will send EOF (end of file). This will exit that running shell session.
ctrl
+g
performs the same action as esc
at all states of the interactive shell.
Pressing ctrl
+l
will clear the screen.
Sometimes you might want to type your command line in a different editor. You can do via via esc
followed by v
.
You will need to have an environmental variable named $EDITOR
set to the file name and path of your preferred editor, otherwise Murex will default to vi
.
(this feature is not currently available on Windows)
This document was generated from gen/user-guide/terminal-keys_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Tue Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.
Current version is 6.4.1005 (develop) which has been verified against tests cases.