1 Keyboard Shortcuts
liquibyte edited this page 2026-11-19 16:23:30 -06:00

Keyboard Shortcuts

Every key Unryu answers out of the box, grouped by menu and by part of the window, and how to change them. Help > Keyboard Shortcuts shows the main keys inside Unryu, in the Details panel, with your own changes at the end. It leaves out F1, the Build keys and the keys of the terminal and the dialogs; this page has them all.

Where a key goes

Most of Unryu's shortcuts work wherever the keyboard is in the main window: in the editor, in the sidebar, in the Details panel or on a toolbar button. You do not have to click in the text first. The exceptions are Ctrl+Z, Ctrl+Y, Ctrl+Shift+Z, Ctrl+X, Ctrl+C, Ctrl+V and Ctrl+A: they belong to the editor and work only while it has the keyboard (the Edit menu items work anywhere). A few places take the keys for themselves, too, and it helps to know the order in which a key press is handled:

The order in which Unryu handles a key press: a modal dialog, a toolbar field, the completion list, the terminal, the Find dialogs, a Markdown document's formatted editor, your own keybindings, Unryu's built-in shortcuts, the menu bar, and finally the editor

What happens to a key press, from the top row left to right, then the bottom row right to left. A step that uses the key stops it; otherwise the key goes on to the next step.

  • A modal dialog such as Preferences or a question answers its own keys while it is open.
  • A toolbar field (the search field or the Go to Line field) takes the keys while it has the keyboard.
  • The completion list, while it is open, takes Up, Down, Page Up, Page Down, Enter, Tab and Escape.
  • The terminal (the Terminal tab of the Message Window) sends every key to the shell while it has the keyboard, apart from a few keys of its own. Unryu's shortcuts do not work there: click in the editor to get them back.
  • The Find, Replace and Find in Files dialogs answer their own keys while they have the keyboard. Their keys are listed under Keys in dialogs.
  • A Markdown document shown as formatted text keeps a few keys for itself, such as Ctrl+B for bold, before your keys and the built-in ones. See Markdown documents.
  • Your own keys from Preferences > Keybindings come before the built-in ones, so a key you give to an action wins over every built-in key.

Each menu item shows its key at the right, and the menus show your own keys once you change them. When a key in the tables below does nothing, check whether one of the places above has the keyboard.

File

Keys Menu item What it does
Ctrl+N File > New A new, empty document in a new tab.
Ctrl+O File > Open... Opens files with the file dialog.
Ctrl+Shift+O File > Open Selected File Opens the file named by the selection, or by the file name at the cursor.
Ctrl+S File > Save Saves the document (asks for a name if it has none).
Ctrl+Shift+S File > Save All Saves every document that has unsaved changes.
Ctrl+R File > Reload Reads the file from disk again. It asks first when there are unsaved changes.
Ctrl+P File > Print... Prints the document.
Ctrl+W File > Close Closes the document. It asks first when there are unsaved changes.
Ctrl+Shift+W File > Close All Closes every document, asking about each unsaved one.
Ctrl+Q File > Quit Quits Unryu, asking first about anything unsaved.

File > New (with Template), Recent Files, Recent Projects, Workbench, Save As..., Reload As, Properties, Page Setup and Close Other Documents have no key at first. Save As, Properties, Page Setup and Close Other Documents can be given one in Preferences > Keybindings. See Files and Recovery for what each command does.

Edit

Keys What it does
Ctrl+Z Undo (Edit > Undo).
Ctrl+Y, Ctrl+Shift+Z Redo (Edit > Redo).
Ctrl+X Cut the selection (Edit > Cut).
Ctrl+C Copy the selection (Edit > Copy).
Ctrl+V Paste (Edit > Paste).
Middle click Paste the primary selection (the text selected last, in any program) where you click.
Ctrl+A Select all the text (Edit > Select All).
Ctrl+Alt+P Open Preferences (Edit > Preferences).
Shift+Alt+D Insert the date at the cursor. It uses your custom date format (Edit > Insert Date > Set Custom Date Format) when you have set one, and otherwise the form dd.mm.yyyy.

Edit > Delete and Edit > Insert Alternative White Space (a non-breaking space) have no key at first, but can be given one. The other items of Insert Comments, Insert Date and Insert "include <...>" are chosen from the menu.

Editing commands

These are the items of Edit > Commands and Edit > Format that have keys. Each command is one change, so one Undo takes it back. See Editing for the details of each.

Keys What it does
Ctrl+D Duplicate the line, or the selection.
Ctrl+K Delete the current line, or every line the selection touches.
Ctrl+Shift+X Cut the current line(s).
Ctrl+Shift+C Copy the current line(s).
Ctrl+Shift+Delete Delete from the cursor to the end of the line.
Ctrl+Shift+BackSpace Delete from the start of the line to the cursor.
Alt+Page Up, Alt+Page Down Move the current line(s) up or down.
Shift+Alt+W Select the word at the cursor.
Shift+Alt+L Select the current line(s).
Shift+Alt+P Select the current paragraph.
Ctrl+E Toggle line commentation: comment the line(s), or uncomment them if they are comments.
Ctrl+I Increase the indentation of the line(s).
Ctrl+U Decrease the indentation of the line(s).
Ctrl+J Reflow the lines, or the block, to the long-line column.
Ctrl+Alt+U Changes the case of the selection (or of the word at the cursor): all in lower case if it has any capital, otherwise all in capitals.
Ctrl+Shift+L Scroll so that the cursor's line is in the middle of the view.
Alt+Up, Alt+Down Scroll the view up or down by one line; the cursor stays where it is. While comparing they are Compare > Previous Change and Next Change instead.

Join Lines, Comment Line(s), Uncomment Line(s), Smart Line Indent, Send Selection to Terminal and the Send Selection to items have no keys. These keys are fixed: they cannot be changed in Preferences > Keybindings.

Moving and typing in the editor

Keys What it does
Left, Right, Up, Down Move the cursor. Over a folded block, Left and Right step over the hidden lines. With line wrapping on, Up and Down move by screen row.
Home To the start of the line. With "Smart" home key on (Preferences > Editor > Features), Home goes to the first character of the line that is not white space; pressed there, it goes to the very start of the line.
End To the end of the line.
Ctrl+Home, Ctrl+End To the start or the end of the document.
Page Up, Page Down Up or down by one screen.
Shift with the arrows, Home, End, Ctrl+Home or Ctrl+End Extend the selection as the cursor moves. Shift+Page Up and Shift+Page Down do not extend the selection.
Enter A new line. With auto-indentation on (Document > Auto-indentation), the new line is indented as the Auto-indent mode in Preferences > Editor > Indentation says. Inside a block comment, the comment continues on the new line when "Automatic continuation of multi-line comments" is on.
Tab Right before a closing character that auto-close typed, steps out of the pair. Otherwise it expands a snippet when the word before the cursor names one; otherwise it indents the line when "Tab key indents" is on (Preferences > Editor > Indentation), or types a tab (or spaces, for a document indented with spaces). With several lines selected, it indents them all.
Shift+Tab Takes one indentation step off the line(s). It types nothing when there is no indentation.
BackSpace Deletes the character before the cursor; between an empty pair that auto-close closes, both. With "Backspace key unindents" on, inside the indentation it takes off one whole step.
Delete Deletes the character after the cursor, or the selection.
} With auto-indentation on and the Auto-indent mode set to "Current chars" or "Match braces", when the closing brace is alone on its line, the line moves back one indentation step ("Current chars") or to the indentation of the line with its { ("Match braces").
( [ { " ' With auto-close on for that character (Preferences > Editor > Completions), the closing partner is typed too, when the new one would otherwise have no partner; with text selected, the pair goes around it. Typing the closing character right before the one auto-close typed steps over it, Tab steps out of the pair, BackSpace between an empty pair deletes both, and Enter between { and } puts the } on a line of its own (Auto-close).
> In HTML, XML and other markup files, with "XML/HTML tag auto-closing" on, typing the > of an opening tag adds its closing tag (not for empty HTML elements such as <br>).

Selecting with the mouse and the keyboard

Keys or mouse What it does
Double click Selects a word.
Triple click Selects a line.
Shift+click Extends the selection to the place clicked.
Click in the line numbers Selects that whole line.
Drag the selection Moves the selected text to where you drop it (unless "Disable Drag and Drop" is on). Press Ctrl during the drag, before you drop, to copy it instead.
Alt+drag A rectangular (block) selection.
Alt+Shift+arrows Make or grow a rectangular selection from the cursor.

While a rectangular selection is active, typing writes the text on every line of it, BackSpace and Delete delete on every line, Tab inserts a tab on every line, Ctrl+C and Ctrl+X copy or cut the block, and Escape ends it. Any other key ends the block and does its usual job. Block selection does not work while Line Wrapping is on or while a block is folded.

Completion and snippets

Keys What it does
Ctrl+Space Shows the completion list for the word before the cursor now, without waiting for the number of characters set in Preferences.
Up, Down, Page Up, Page Down Move through the open list.
Enter, Tab Take the chosen word.
Escape Close the list.
Tab after a snippet's name Replaces the name with the snippet's text, when "Snippet completion" is on (Preferences > Editor > Completions). Your own snippets are in Tools > Configuration Files > snippets.conf.
Keys Menu item What it does
Ctrl+F Search > Find... Opens the Find dialog.
Ctrl+G, F3 Search > Find Next The next match of the last search, with the dialog open or closed.
Ctrl+Shift+G, Shift+F3 Search > Find Previous The previous match.
Ctrl+F3 Search > More > Find Next Selection The next place of the selection, or of the word at the cursor, with no search options.
Ctrl+Shift+F3 Search > More > Find Previous Selection The same, backwards.
Ctrl+H Search > Replace... Opens the Replace dialog.
Ctrl+Shift+F Search > Find in Files... Opens the Find in Files dialog.
Ctrl+Shift+E Search > More > Find Usage Lists every place in the project that means the name at the cursor; with a selection, every use of it in all open documents; in the Message Window.
Ctrl+Shift+D Search > More > Find Document Usage The same, in this document only.
Ctrl+Shift+M Search > More > Mark All Marks the word at the cursor everywhere in the document. Press it again with the cursor on a mark to clear the marks.
Ctrl+M (no menu item) Toggle a marker (a bookmark) on the cursor's line. A click in the markers margin does the same.
Ctrl+. Search > Go to Next Marker To the next line with a marker.
Ctrl+, Search > Go to Previous Marker To the previous line with a marker.
Ctrl+L Search > Go to Line... Asks for a line number (or +N / -N from the current line) and goes there.

Search > Next Message, Previous Message and Clear Marks have no key at first, but can be given one. Stop Find in Files has no key, and none can be given to it. See Find and Replace.

Navigate: definitions, braces and jumps

Keys Menu item What it does
Alt+Left Navigate > Back Back to the place you jumped from. While comparing it is Compare > Copy Change to Left instead.
Alt+Right Navigate > Forward Forward again after Back. While comparing it is Compare > Copy Change to Right instead.
Ctrl+T, F12, Ctrl+click Navigate > Go to Definition To the definition of the name at the cursor (or under the pointer, for Ctrl+click). A name from a header opens that header in its own tab. On a web address in a comment or a string, it opens the address in your browser.
Ctrl+Shift+T Search > More > Go to Symbol Declaration To the declaration of the name, for example a function's prototype.
Ctrl+Alt+O Navigate > Go to Anything Any file of the project; with > any command, @ a symbol of the document, # one of the project, : a line.
Ctrl+Shift+P Navigate > Command Palette Any command, by typing part of its name.
Ctrl+Alt+G Navigate > Go to Symbol in the Project Anything the project defines, in any language.
Ctrl+Alt+H Navigate > Switch Header and Source From foo.c to foo.h and back, onto the function the cursor is in.
Ctrl+B Navigate > Go to Partner To the partner of the brace, quote, tag, block word or #if line at the cursor.
Ctrl+Alt+B Navigate > Select Inside Pair Selects what is inside the pair around the cursor; again, the next pair out. Only certain pairs.
Ctrl+Alt+Shift+B Navigate > Select Pair The same, with the pair's brackets, quotes or tags.
Ctrl+Alt+Down Navigate > Next Doubtful Brace To the next brace whose partner is not certain. At the end it starts again from the top.
Ctrl+Alt+Up Navigate > Previous Doubtful Brace The same, upwards.
Ctrl+Shift+J Navigate > Insert Missing Brace Writes the missing brace, quote, end tag or closing word (drawn faded or flashing) at the cursor, or the next one, into the text.
Ctrl+Shift+B Navigate > Suggest Repairs (Runs the Compiler) In a C or C++ file, asks the compiler, in a sandbox, which places for a doubtful brace compile. Press it again to stop. This is the only key that runs a compiler on its own.
Ctrl+Alt+1 ... Ctrl+Alt+9 (no menu item) Applies repair 1 to 9 from the list in Details, as one Undo step.

See Analysis for braces and definitions, and Safety for how the compiler is kept in a sandbox.

Documents and tabs

Keys What it does
Ctrl+Tab To the document you used last. Press it again quickly to go further back through the documents by last use; after a pause of 1.2 seconds, the one you reached counts as the latest. Ctrl+Shift+Tab does the same (it does not go the other way).
Ctrl+Page Up, Ctrl+Page Down To the tab on the left or on the right. At the ends it wraps around.
Ctrl+Shift+Page Up, Ctrl+Shift+Page Down Moves the current tab one place to the left or to the right (it wraps around too). You can also drag a tab.

View

Keys Menu item What it does
F11 View > Fullscreen The window fills the screen, or comes back.
F10 View > Show Menubar Hides or shows the menu bar. When the menu bar is hidden, this key is the way to get it back.
Ctrl++, Ctrl+=, Ctrl with the keypad's + View > Zoom In Larger editor text.
Ctrl+-, Ctrl with the keypad's - View > Zoom Out Smaller editor text.
Ctrl+0, Ctrl with the keypad's 0 View > Normal Size The editor text at its normal size.
Ctrl+mouse wheel Zooms the editor in or out. Over the documentation popup, it changes the popup's text size.
Ctrl+middle click Normal size again, in the editor or the documentation popup.

Every Show item of the View menu (Markers Margin, Line Numbers, White Space, Line Endings, Indentation Guides, Message Window, Toolbar, Sidebar, Details), Toggle All Additional Widgets and Reset Layout can be given a key in Preferences > Keybindings. Change Font, Change Color Scheme, Change Theme, Syntax Highlighting and Flash Missing Braces are chosen from the menu. See The Window.

Document

The Document menu has no keys at first. Line Wrapping, Line Breaking, Read Only, Clone, Strip Trailing Spaces, Replace Tabs with Spaces, Fold All, Unfold All, Remove Markers and Remove Error Indicators can be given keys in Preferences > Keybindings. Click the fold marker in the fold margin to fold or unfold one block.

Build

The Build menu shows the build commands for the document's language (see Build and Run). Each key runs the command in that place of the menu, whatever its label is.

Keys Command (its usual label)
F8 The language's first command (Compile).
F9 The language's second command (Build).
Shift+F9 The first independent command (none until you set one).
Ctrl+Shift+F9 The second independent command.
Shift+F8 The third independent command.
F5 Execute. While the program it started is still running, the item reads Stop and F5 stops it.

While a build runs, its own row reads Stop, and its key stops it: F9 again stops a Build that runs, for example.

The language's third command (Lint), the fourth independent command, Next Error, Previous Error and Set Build Commands have no key at first, but can be given one. Every build command needs the document to be saved first, because the commands use the file's name.

Tools and Help

Keys Menu item What it does
F1 Help > Help Opens this manual in your web browser (the browser set in Preferences > Tools, or the desktop's default).

Tools > Reload Configuration, Color Chooser and Word Count, and Help > Keyboard Shortcuts and Debug Messages can be given keys. The other items of the Tools and Help menus are chosen from the menu.

Using the menus with the keyboard

Keys What it does
Alt+F, Alt+E, Alt+S, Alt+N, Alt+V, Alt+D, Alt+B, Alt+T, Alt+H Open the File, Edit, Search, Navigate, View, Document, Build, Tools or Help menu: Alt and the first letter of its title.
Up, Down Move through the open menu (greyed items are skipped).
Left, Right To the menu beside it.
Enter Choose the item. A check item changes and the menu stays open. On an item with a flyout, opens the flyout.
A letter Chooses at once the first item whose label starts with that letter. If that item has a flyout, the flyout opens instead.
Escape Closes the menu.

The flyouts (Edit > Commands, Format and Insert Date, Search > More, File > Recent Files, Tools > Configuration Files ...) open with the mouse, or with Enter or their letter. A flyout opened from the keyboard starts with its first item highlighted: Up and Down move in it, and Enter or a letter chooses. Left and Right always go to the menu beside, and Escape closes the whole menu.

Panels and lists

Where Keys
The sidebar's lists (Outline, Documents, Files) Up and Down move through the rows, Home and End go to the first and last row, Left closes a group or folder and Right opens it. In the Outline, the editor shows each symbol as you move to it, and the keyboard stays in the Outline. In the Documents list, the row you move to is shown at once and the keyboard goes back to the editor. In the Files list, Enter (or a double click) opens the file.
The toolbar's search field Enter finds the next match; Escape gives the keyboard back to the editor.
The toolbar's Go to Line field Enter goes to the line; Escape gives the keyboard back to the editor.
The document tabs A click on a tab shows that document and gives the keyboard back to the text. With "Double-clicking hides all additional widgets" on (Preferences > Interface), a double click on a tab hides or shows the panels. A double click on the empty part of the row, beside the tabs, opens a new document. Drag a tab to move it: it follows the pointer, and a gap shows where it will drop.

Markdown documents

A Markdown document opens in a formatted editor. There, these keys belong to the formatted editor and not to Unryu:

Keys What it does
Ctrl+B, Ctrl+I, Ctrl+U Bold, italic, underline for the selection.
Ctrl+Z, Ctrl+Y or Ctrl+Shift+Z Undo and Redo in the formatted text.
Ctrl+X, Ctrl+C, Ctrl+V, Ctrl+A Cut, copy, paste, select all.
Arrows, Home, End, BackSpace, Delete, Enter As in any editor. Home and End go to the start and end of the screen row.
Page Up, Page Down Move the cursor and the view by a screen. With Shift they select.
Tab Types a tab, except in a table cell (below).

Ctrl and Ctrl+Shift with B, I, U, Z, Y, X, C, V or A, and Ctrl with the arrows, Home, End, BackSpace, Delete or Insert, also belong to the formatted editor: Ctrl+Shift+Z redoes there, Ctrl+Shift+B makes the text bold, and Ctrl+Home and Ctrl+End only go to the ends of the screen row. Every other Ctrl key, every Alt key, the function keys and Escape still go to Unryu, so Ctrl+S, Ctrl+O, F1 and the menus work as usual.

Because of this, Go to Partner, the indent keys, Suggest Repairs (Ctrl+Shift+B), Cut and Copy Line(s), and Ctrl+Shift+Delete and Ctrl+Shift+BackSpace are not available there. With the Plain Text button of the Markdown toolbar pressed, the document shows its source in the normal editor and every key on this page works as usual.

Inside a table cell: Tab and Shift+Tab go to the next and the previous cell, Enter goes to the cell below, the arrows move through the cells (and out of the table at its edges), and Home and End go to the start and end of the cell. Ctrl+B, Ctrl+I and Ctrl+U (and the formatting toolbar's text styles) format the selected text of the cells, as in the rest of the document.

The terminal

While the Terminal tab of the Message Window has the keyboard, keys go to your shell. The function keys, Ctrl keys and Alt keys all reach the program in the terminal; Alt and a key always goes to the program. These keys belong to the terminal itself:

Keys What it does
Ctrl+Shift+C Copy the selection.
Ctrl+Shift+V Paste the clipboard.
Shift+Insert, middle click Paste the primary selection (the text selected last anywhere).
Ctrl+Shift+F Search in the terminal's text and its scrollback. Type the text; Enter goes to the match above, Shift+Enter to the match below, Alt+C makes upper and lower case count, Alt+R treats the text as a pattern, BackSpace deletes a character, and Escape or Ctrl+Shift+F again ends the search.
Shift+Page Up, Shift+Page Down Scroll back through earlier output, a page at a time.
Ctrl+Shift+Up, Ctrl+Shift+Down Jump to the prompt above or below (with shell integration).
Ctrl+Shift+O Puts a letter on each link and file name in view; press the letter to open it. Any other key cancels.
Ctrl+Shift+Space Select text with the keyboard (see below).
Ctrl++ (or Ctrl+=, or Ctrl with the keypad's +), Ctrl+- (or the keypad's -), Ctrl+0 Larger, smaller and normal text size in the terminal, unless the running program turned on modifyOtherKeys.
Ctrl+Break Sends the terminal's answerback message.
Enter, Escape When the terminal asks before pasting several lines into a program that could run them, Enter pastes and Escape cancels.

Selecting with the keyboard (after Ctrl+Shift+Space): a cursor of its own starts at the terminal's cursor. h j k l or the arrows move it, w and b go a word forward or back, 0 or Home to the start of the line, $ or End to its last character, g and G to the top and the bottom, and Page Up and Page Down by a page. v starts (or ends) a selection by characters, V one by whole lines. y or Enter copies the selection and ends the mode; Escape or q ends it without copying.

With the mouse: the wheel scrolls back through the output; Ctrl+click on a file name opens the file in the editor at the line and column after the name, and on an address opens the browser; Ctrl+drag selects a rectangle; hold Shift to select text even when the program in the terminal uses the mouse; the right button opens the terminal's menu (Copy, Copy as HTML, Paste, Select All, Find..., Open Link, Copy Link, Copy Command Output, Hide or Show Command Output, Larger Text, Smaller Text, Normal Text Size, Clear Scrollback, Reset Terminal). When the program in the terminal uses the mouse, hold Shift for the menu, the middle-click paste, the wheel and selecting. A click on a prompt's mark in the margin selects that command's output; a double click hides or shows it. In a full-screen program the wheel sends the Up and Down keys to the program instead of scrolling.

Keys in dialogs

In most dialogs, Enter presses the default button (the one drawn marked) and Escape closes the dialog without doing anything, the same as Cancel or closing its window. A question with several answers closes the same way on Escape, without choosing any of its buttons. Preferences is the exception for Enter: there Enter does nothing unless a button has the keyboard, so press OK or Apply.

Find and Replace

Keys What it does
Enter Find: Next. Replace: Find, or Replace & Find when the keyboard is in "Replace with".
Shift+Enter Find: Previous.
F3, Shift+F3 Next and previous match.
Ctrl+F, Ctrl+H Switch the dialog to Find or to Replace.
Tab In Replace, between "Search for" and "Replace with".
Alt+Down Opens the history of the field with the keyboard.
Escape Closes the dialog.

Alt and the underlined letter works each control:

Control Find Replace
Search for (the field) Alt+S Alt+S
Replace with (the field) Alt+H
Use regular expressions Alt+U Alt+U
Use multi-line matching Alt+G Alt+G
Use escape sequences Alt+E Alt+E
Search backwards Alt+B
Case sensitive Alt+A Alt+A
Match only a whole word Alt+W Alt+W
Match from start of word Alt+T Alt+T
Previous / Find (button) Alt+P (Previous) Alt+F (Find)
Next / Replace & Find (button) Alt+N (Next) Alt+N (Replace & Find)
Replace (button) Alt+R
Open or close Find All / Replace All Alt+F Alt+P

While Find All or Replace All is open: Alt+D Close dialog, Alt+M Mark (Find only), Alt+O In Session, Alt+I In Document and Alt+L In Selection (Replace only).

Find in Files

Keys What it does
Enter Find.
Tab, Shift+Tab Through the text fields: Search for, File patterns (only when the files choice is custom), Directory.
Alt+S, Alt+P, Alt+D To the Search for, File patterns (only when the files choice is custom) or Directory field.
Alt+U, Alt+I, Alt+R, Alt+A, Alt+W Use regular expressions, Invert search results, Recurse in subfolders, Case sensitive, Match only a whole word.
Alt+Down Opens the history of the field with the keyboard.
Alt+N Opens the Encoding list. In it: Up, Down, Home and End move, Enter takes the encoding, Escape closes the list.
Escape Closes the dialog.

The file dialog (Open, Save As)

Keys What it does
Up, Down, Home, End, Page Up, Page Down Move through the list of files.
Enter Opens the selected folder, or accepts the selected file.
Ctrl+L Type a path. Enter goes to that folder (or, in Open, opens that file), Escape stops typing, Ctrl+A selects the whole path.
Ctrl+H Shows or hides hidden files.
Ctrl+Shift+N A new folder: type its name, Enter makes it, Escape stops.
Escape Cancels the dialog.

Lists of choices (Change Color Scheme, Change Theme, Set Filetype)

Up, Down, Home and End move through the list, and each choice is used at once. Enter, Escape or Alt+C closes the list.

Preferences

Escape is Cancel: it closes the dialog and undoes what Apply did. It works only while no field or button has the keyboard; otherwise press Cancel. While you set a new key on the Keybindings page, the next key you press is the new shortcut (see below).

Changing the keys

Open Edit > Preferences (Ctrl+Alt+P) and choose the Keybindings page.

  1. The list shows each action as "Group: Action = keys", or "(none)" when it has no keys. Type in the Filter field to shorten the list; it matches the group, the action's name and its keys.
  2. Select an action and press Change, double-click it, or press Enter in the list.
  3. The line under the button asks you to press the new shortcut. Press it, with its Ctrl, Shift and Alt. BackSpace on its own takes all keys away from the action, and Escape keeps the keys it has. Escape, with or without Ctrl, Shift or Alt, can never be given to an action.
  4. Press Apply or OK. The new keys work at once, and the menus show them.

Rules to know:

  • A key you give to an action comes before every built-in key, so it wins even over a fixed key such as Ctrl+D.
  • When you change an action's keys, its old keys stop doing it. They are then free: the editor gets them, and they do nothing unless the editor has a use for them. The exception is that the editor itself always answers Ctrl+Z, Ctrl+Y, Ctrl+Shift+Z, Ctrl+X, Ctrl+C, Ctrl+V and Ctrl+A: changing Undo, Redo, Cut, Copy, Paste or Select All adds a key but does not take these away.
  • Some actions have a second built-in key that is not in the list, for example F3 for Find Next and F12 for Go to Definition. Those keep working when you change the first key.
  • Unryu does not warn you when a key is already used by another action. Avoid a plain letter or a key without Ctrl or Alt: the editor would no longer type that character.
  • The keys of the editing commands (Ctrl+D, Ctrl+K, Ctrl+E ...), Go to Symbol Declaration, Find Next / Previous Selection, Find Usage, Find Document Usage, Mark All, Move document left / right, Insert date, apply repair 1 to 9, and the keys of the editor, the terminal and the dialogs are fixed. They are not in the list.
  • Help > Keyboard Shortcuts lists, at its end, every action whose keys you changed.

The keybindings.conf file

Your changes are kept in ~/.config/unryu/keybindings.conf (or under $XDG_CONFIG_HOME/unryu). It holds only the actions whose keys differ from the defaults, one per line:

# Unryu's keybindings: the actions whose keys the user changed (Preferences > Keybindings); empty: no keys.
File: Save As = Ctrl+Shift+A
View: Show Sidebar = Ctrl+Alt+S
File: Close = 

The name before "=" is the group and the action exactly as the Keybindings list shows them. After "=" come the modifiers Ctrl (or Control), Shift and Alt, each followed by +, and then one X key name. The modifiers and a single letter may be in either case, but other key names must be written exactly as X spells them: a letter or digit, F1 ... F12, Left, Up, Prior (Page Up), Next (Page Down), space, period, comma, equal, minus, Tab and so on. Nothing after "=" means the action has no keys (in the example, File > Close has lost Ctrl+W). The Keybindings page shows keys by these names too, for example Ctrl+Prior for Ctrl+Page Up and Ctrl+period for Ctrl+. To edit the file inside Unryu, choose Tools > Configuration Files > keybindings.conf, save it, then choose Tools > Reload Configuration. Pressing Apply or OK in Preferences writes the file again from the Keybindings page, so do not keep Preferences open while you edit the file.

Every action that can have keys

This is the full list of the Keybindings page, with each action's keys at first. An empty cell means the action has no key until you give it one.

Group Action Keys at first
File New Ctrl+N
File Open Ctrl+O
File Open Selected File Ctrl+Shift+O
File Save Ctrl+S
File Save As
File Save All Ctrl+Shift+S
File Reload Ctrl+R
File Properties
File Page Setup
File Print Ctrl+P
File Close Ctrl+W
File Close Other Documents
File Close All Ctrl+Shift+W
File Quit Ctrl+Q
Edit Undo Ctrl+Z
Edit Redo Ctrl+Y
Edit Cut Ctrl+X
Edit Copy Ctrl+C
Edit Paste Ctrl+V
Edit Delete
Edit Select All Ctrl+A
Edit Insert Alternative White Space
Edit Insert Placeholder Text
Edit Insert Unicode Character Ctrl+Shift+U
Edit Preferences Ctrl+Alt+P
Edit Complete word Ctrl+Space
Commands Sort Lines; Sort Lines, Ignore Case; Sort Lines, Natural Order; Sort Lines and Remove Duplicates; Remove Duplicate Lines; Remove Empty Lines none
Format Shift Column Left none
Format Enclose 1 to Enclose 8 (the pairs of Edit > Format > Enclose Selection) none
Format Shift Column Right none
Search Find Ctrl+F
Search Find Next Ctrl+G
Search Find Previous Ctrl+Shift+G
Search Find in Files Ctrl+Shift+F
Search Replace Ctrl+H
Search Next Message
Search Previous Message
Search Go to Next Marker Ctrl+.
Search Go to Previous Marker Ctrl+,
Search Toggle Marker Ctrl+M
Search Go to Line Ctrl+L
Search Clear Marks
Navigate Back Alt+Left
Navigate Forward Alt+Right
Navigate Go to Anything (files) Ctrl+Alt+O
Navigate Command Palette Ctrl+Shift+P
Navigate Go to Symbol in the Project Ctrl+Alt+G
Navigate Switch Header and Source Ctrl+Alt+H
Navigate Go to Partner Ctrl+B
Navigate Select Inside Pair Ctrl+Alt+B
Navigate Select Pair Ctrl+Alt+Shift+B
Navigate Go to Definition Ctrl+T
Navigate Next Doubtful Brace Ctrl+Alt+Down
Navigate Next Change / Previous Change (the change bar, Git)
Navigate Previous Doubtful Brace Ctrl+Alt+Up
Navigate Insert Missing Brace Ctrl+Shift+J
Navigate Suggest Repairs (compiler) Ctrl+Shift+B
View Show Markers Margin
View Show Line Numbers
View Show White Space
View Show Line Endings
View Show Indentation Guides
View Fullscreen F11
View Toggle All Additional Widgets
View Show Message Window
View Show Toolbar
View Show Sidebar
View Show Details
View Show Menubar F10
View Zoom In Ctrl+=
View Zoom Out Ctrl+-
View Normal Size Ctrl+0
View Reset Layout
Document Line Wrapping
Document Line Breaking
Document Read Only
Document Clone
Document Strip Trailing Spaces
Document Replace Tabs with Spaces
Document Fold All
Document Unfold All
Document Remove Markers
Document Remove Error Indicators
Notebook Switch to left document Ctrl+Page Up
Notebook Switch to right document Ctrl+Page Down
Notebook Switch to last used document Ctrl+Tab
Build Compile F8
Build Build F9
Build Lint
Build Make all Shift+F9
Build Make custom target Ctrl+Shift+F9
Build Make object Shift+F8
Build Make clean
Build Next error
Build Previous error
Build Run F5
Build Build options
Tools Reload Configuration
Tools Show Color Chooser
Tools Word Count
Tools Check Spelling
Code Tools Format the document with its language's formatter Ctrl+Alt+F
View Show Minimap
Debug Start or Continue / Stop Ctrl+F5 / Ctrl+Shift+F5
Debug Step Over / Step Into / Step Out / Run to Cursor F6 / F7 / Shift+F7 / Ctrl+F7
Debug Toggle Breakpoint (also Shift+click in the markers margin) Ctrl+F9
Search Set numbered bookmark 0 to 9 / go to it Ctrl+Shift+0 ... Ctrl+Shift+9 / Ctrl+0 ... Ctrl+9 (fixed)
Tools Translation: Next / Previous Untranslated or Fuzzy, Toggle Fuzzy, Copy Original into Translation
Compare Next change / previous change (while comparing; else they scroll by a line) Alt+Down / Alt+Up
Compare Copy change to left / to right (while comparing; else Back and Forward) Alt+Left / Alt+Right
Compare Copy all changes to left, copy all changes to right, swap sides, stop comparing
Macros Start or stop recording Ctrl+Alt+R
Macros Play last recording Ctrl+Alt+M
Code Tools Code tool 1 to Code tool 16: the tool in that row of Preferences > Tools > Code tools
Help Help F1
Help Look Up Documentation Shift+F1
Help Keyboard Shortcuts
Help Debug Messages

In the Build group, Run is Execute (F5), and Build options opens Preferences on its Build page, as Build > Set Build Commands does.

Keys that changed in earlier versions

If you used an earlier version of Unryu, some of its own keys have moved to the keys that other editors, and Geany in particular, use for the same thing:

Action Old key Key now
Go to the partner brace Ctrl+J Ctrl+B
Suggest repairs (compiler) Ctrl+B Ctrl+Shift+B
Insert the missing brace Ctrl+G Ctrl+Shift+J
Next / previous doubtful brace F8 / Shift+F8 Ctrl+Alt+Down / Ctrl+Alt+Up
Apply repair 1 to 9 Ctrl+1 ... Ctrl+9 Ctrl+Alt+1 ... Ctrl+Alt+9
Reload F5 Ctrl+R
Preferences Ctrl+, Ctrl+Alt+P
Save All (Ctrl+Shift+S was Save As) Ctrl+Shift+S
Last used document (Ctrl+Tab was the next tab) Ctrl+Tab