Keys

Keys by purpose; click a group to open it.

On a Mac keyboard the top row sends media and brightness keys by default, so every F-key here (F5 Run, F6, F8, F12 and the rest) needs fn held, unless System Settings > Keyboard has "Use F1, F2, etc. keys as standard function keys" turned on. F8 without fn plays or pauses Music, F7 without fn goes to the previous track, and F10 without fn mutes the sound.

Run, files and tabs

KeyWhereDoes
F5anywhere in the windowRun
Cmd/Ctrl+Ranywhere in the windowRun
Escanywhere in the windowStop, only while something is running
Cmd/Ctrl+Oanywhere in the windowOpen
Cmd/Ctrl+Sanywhere in the windowSave
Cmd/Ctrl+Shift+Sanywhere in the windowSave As
Cmd/Ctrl+Wanywhere in the windowClose the tab (asks first over unsaved changes); on the last tab, close the window, which quits the app
Cmd/Ctrl+Tanywhere in the windowNew Untitled tab
Cmd/Ctrl+Shift+]anywhere in the windowNext tab (wraps)
Cmd/Ctrl+Shift+[anywhere in the windowPrevious tab (wraps)
Cmd/Ctrl+1 to 8anywhere in the windowGo to that tab
Cmd/Ctrl+9anywhere in the windowGo to the last tab
Cmd/Ctrl+Shift+Eanywhere in the windowShow or hide the file tree

File tree

KeyWhereDoes
Up/Down, Returnfile treeMove, and open a file or a folder
Right/Leftfile treeOpen or close the selected folder
F2file treeRename the selected row
Delete, Cmd/Ctrl+Backspacefile treeMove the selected row to the Trash
Shift+F10, Menufile treeOpen the menu for the selected row
Escapefile treeGive focus back to the editor

Editing, undo, zoom and themes

KeyWhereDoes
( [ { "Definitions editorAuto-pair the closer, or wrap the selection
TabDefinitions editorIndent the line or selection
Shift+TabDefinitions editorUnindent the line or selection
Cmd/Ctrl+/Definitions editorToggle line comments
Cmd/Ctrl+;Definitions editorToggle line comments
Cmd/Ctrl+Shift+FDefinitions editorFormat the whole file
Cmd/Ctrl+Option(Alt)+FDefinitions editorFormat the selection or current line
Cmd/Ctrl+Option(Alt)+LDefinitions editorFormat the selection or current line
Cmd/Ctrl+Option(Alt)+Panywhere in the windowParinfer: next mode (Smart, Indent, Paren, off)
Cmd/Ctrl+Zanywhere in the windowUndo
Cmd/Ctrl+Shift+Zanywhere in the windowRedo (GTK's own binding)
Cmd/Ctrl+YDefinitions editorRedo
F6anywhere in the windowMove focus between the editor and the console
F8anywhere in the windowGo to the next place in the locations list
Shift+F8anywhere in the windowGo to the previous place in the locations list
F9anywhere in the windowToggle a breakpoint on the caret's line (Breakpoints)
F7anywhere in the windowStep Into: the next line, while paused at a breakpoint (Stepping)
F10anywhere in the windowStep Over: the next line in this function, while paused at a breakpoint
Shift+F7anywhere in the windowStep Out: the caller's next line, while paused at a breakpoint
Cmd/Ctrl+.anywhere in the windowGo to the next place in the locations list
Cmd/Ctrl+Shift+.anywhere in the windowGo to the previous place in the locations list
Cmd/Ctrl+= (or +)anywhere in the windowZoom in
Cmd/Ctrl+-anywhere in the windowZoom out
Cmd/Ctrl+0anywhere in the windowReset zoom
Cmd/Ctrl+Shift+Manywhere in the windowCycle the theme (light, dark, solarized, navy, auto)
Cmd/Ctrl+Shift+Panywhere in the windowOpen the command palette

To check a key from inside Jonquil, plugins' keys included, run Describe the next key you press from the palette (Describing keys).

Running code and the console

KeyWhereDoes
Cmd/Ctrl+Eanywhere in the windowRun the editor's selection, or its current line, at the console prompt
Cmd/Ctrl+EnterDefinitions editorRun the form at the caret (in a comment block, the form inside it)
Cmd/Ctrl+Lanywhere in the windowClear the console's output history
Cmd/Ctrl+Shift+Lanywhere in the windowClear the last entry's output (CIDER's C-c C-o)
Returnconsole promptEvaluate, send the line as stdin, or insert a newline for an unfinished multi-line entry
Shift+Returnconsole promptAlways insert a newline
Upconsole prompt, first line of inputRecall the previous history entry
Downconsole prompt, last line of inputRecall the next history entry
Cmd/Ctrl+Dconsole prompt, while waiting on inputSend end-of-input

Find and replace

KeyWhereDoes
Cmd/Ctrl+Fanywhere in the windowOpen the find bar
Cmd/Ctrl+Hanywhere in the windowOpen the find bar with replace showing
Return, F3 or Cmd/Ctrl+Gfind bar (F3/Cmd+G also from the editor)Next match
Shift+Return, Shift+F3 or Cmd/Ctrl+Shift+Gfind barPrevious match
Escapefind barClose the find bar

Completion, docs, jump and rename

KeyWhereDoes
EscapeDefinitions editor, console inputClose an open completion, quick doc or rename popover (before it would Stop)
Ctrl+SpaceDefinitions editor, console inputOpen or commit completion
Ctrl+Q or Shift+F1Definitions editorQuick documentation
Ctrl+Q or Shift+F1, pressed again on the same popoverDefinitions editorFull documentation (JVM Clojure, an nREPL server with a doc op, ClojureScript and jank; not Jolt or ClojureDart)
F12 or Ctrl+BDefinitions editorJump to definition
Shift+F6 or F2Definitions editorRename
Shift+F10 or right clickDefinitions editor, console inputOpen the context menu

Inspector and source panel

KeyWhereDoes
Cmd/Ctrl+Ianywhere in the windowInspect the last result
Cmd/Ctrl+Shift+Ianywhere in the windowInspect the form at the caret
Up/Downinspector panelMove the selection
Return or Rightinspector panelGo in on the selected row
Left or Backspaceinspector panelGo out a level
Page Up/Page Downinspector panelPage
minspector panelToggle metadata
vinspector panelToggle between the table and the list
[ or ]inspector panelEarlier or later object in the inspector's history (Jolt only)
dinspector panelOpen the def prompt (nothing while the panel's actions are disabled, after a lost connection)
Escapeinspector panelClose the panel and focus the editor
Cmd/Ctrl+[Source panelBack to where the panel was
Cmd/Ctrl+[Elsewhere, after F12 opened a tabBack to where F12 was pressed
Cmd/Ctrl+Shift+OSource panelOpen the panel's project file in a tab
EscapeSource panelClose the panel
Cmd/Ctrl+Alt+1 to 8anywhere in the windowFocus the Inspector, Source, Locations, Frames, Trace, Plugins, Messages or Processes panel, bring it back, or open it (Switching panels, Messages, Processes)
Cmd/Ctrl+Alt+9anywhere in the windowShow the doc of the symbol at the caret in the docs panel, or focus the panel when there is none (The docs panel)
[ or ]docs panelBack or forward through the pages shown
Click on a symboldocs panelOpen that symbol's doc as the next page

This page is docs/guide/keys.md in the Jonquil repository.

Enter to open · Esc to close