Unryu: Find and Replace

How to search and replace text in Unryu: in the current document, in every open document, and in the files of a folder. This page covers the Find, Replace and Find in Files dialogs and every option in them, the whole Search menu, regular expressions, the results in the message window, and the settings that Unryu remembers.

1. The search tools at a glance

Unryu has several ways to search. Pick the one that fits what you want to do:

You want toUseKeys
Find the next or previous match of a text in the current documentSearch > Find..., then Next or PreviousCtrl+F, then Enter / Shift+Enter
Repeat the last search without opening the dialogSearch > Find Next / Find PreviousCtrl+G / Ctrl+Shift+G, or F3 / Shift+F3
Jump to the next place where the selected word appearsSearch > More > Find Next Selection / Find Previous SelectionCtrl+F3 / Ctrl+Shift+F3
Replace text, one match at a time or all at onceSearch > Replace...Ctrl+H
See a list of every line that matches, in one or all open documentsFind dialog > Find All > In Document / In SessionAlt+I / Alt+O in the dialog
Highlight every match in the documentFind dialog > Find All > Mark, or Search > More > Mark AllAlt+M in the dialog, Ctrl+Shift+M
List every use of the word at the cursorSearch > More > Find Usage / Find Document UsageCtrl+Shift+E / Ctrl+Shift+D
Search the files of a folder, also files that are not openSearch > Find in Files...Ctrl+Shift+F
Search while you typeThe Find field on the toolbarclick the field, type, Enter

These are the default keys. You can change most of them in Preferences > Keybindings. F3 and Shift+F3, Ctrl+F3 and Ctrl+Shift+F3, Ctrl+Shift+E, Ctrl+Shift+D and Ctrl+Shift+M, and the other items of Search > More, are fixed, and Stop Find in Files has no key and cannot be given one; see Keyboard shortcuts for the full list.

2. The Find dialog

Open it with Search > Find... or Ctrl+F. The dialog is a separate small window that does not block the editor: you can leave it open, click in the document, edit, and come back to it. The first time it opens near the top right corner of the main window. After that it opens where you last left it, also after a restart.

When the dialog opens, the Search for field is filled in for you:

The text in the field is selected, so you can type over it at once.

Find Search for: ▾ Use regular expressions Use multi-line matching Use escape sequences Case sensitive Match only a whole word Match from start of word ▾ Find All Close dialog Mark In Session In Document "x" was not found. Close Previous Next Alt+S puts the keyboard in this field. ▾ or Alt+Down: the last 10 texts, newest first. Alt+U. When on, it greys the three options it does not use, and enables multi-line (Alt+G). Alt+E. Right column: Alt+A, Alt+W, Alt+T. A whole word greys "start of word". Click it or press Alt+F to open or close the row. Alt+D, Alt+M, Alt+O, Alt+I (only while open). Close dialog is on by default. At the left: what the last action found. Alt+P, Alt+N. Enter: Next. Shift+Enter: Previous. Escape or Close: close the dialog.
The Find dialog with the Find All row open. Grey options cannot be chosen with the current combination of options. Find has no "Search backwards" option: the Previous button searches back.

The controls of the Find dialog

ControlKeyWhat it does
Search forAlt+SThe text or regular expression to find, up to 65,535 bytes long.
▾ (at the right of the field)Alt+DownOpens a list of the last 10 texts you searched for, the newest first. Choose one to put it in the field. A text goes into the list only when a search with it was carried out.
Use regular expressionsAlt+UThe text is a regular expression (section 7), not plain text.
Use multi-line matchingAlt+GOnly with regular expressions: a match may go over line ends (section 7).
Use escape sequencesAlt+EOnly for plain text: \n, \t and the others mean the characters they name (section 8).
Case sensitiveAlt+AUpper and lower case must be as typed.
Match only a whole wordAlt+WOnly for plain text: the match must be a whole word.
Match from start of wordAlt+TOnly for plain text: the match must start a word.
▸ Find AllAlt+FOpens or closes the Find All row. Unryu remembers whether it is open.
Close dialogAlt+DWhen on (the default), the dialog closes after Mark, In Session or In Document.
MarkAlt+MHighlights every match in the current document (section 9).
In SessionAlt+OLists every matching line of every open document in the message window (section 9).
In DocumentAlt+ILists every matching line of the current document in the message window.
CloseEscapeCloses the dialog. The keyboard goes back to the editor.
PreviousAlt+P, Shift+Enter, Shift+F3Finds the match before the selection (section 5).
NextAlt+N, Enter, F3Finds the match after the selection. This is the default button.

The Alt keys of the Find All row work only while the row is open. The Alt key of a greyed option does nothing. Inside the dialog, Ctrl+H changes it to the Replace dialog and Ctrl+F changes it back. The window manager's close button closes the dialog, as Close does.

The line at the left of the buttons tells what the last action did, for example "x" was not found., Wrapped around to the start. or Found 5 matches for "x". It is empty each time the dialog opens. The same text also appears in the status bar.

3. The Replace dialog

Open it with Search > Replace... or Ctrl+H. It is the Find dialog with a second field and other buttons. The Search for field is filled in the same way as in Find (section 2).

Replace Search for: ▾ Replace with: ▾ Use regular expressions Use multi-line matching Use escape sequences Search backwards Case sensitive Match only a whole word Match from start of word ▾ Replace All Close dialog In Session In Document In Selection Close Find Replace Replace & Find Alt+S. Enter in this field: Find. Alt+H. Enter in this field: Replace & Find. Tab moves between the two fields. The same options as Find, with the same keys. Alt+B. Only the Replace dialog has it. Click it or press Alt+P to open or close the row. Alt+D, Alt+O (asks first), Alt+I, Alt+L. Alt+F, Alt+R, Alt+N.
The Replace dialog with the Replace All row open. Replace keeps its own options, histories, Close dialog check, open or closed row and window position, separate from those of Find.

The controls of the Replace dialog

ControlKeyWhat it does
Search forAlt+SThe text or expression to find. Its own history of 10 (▾ or Alt+Down).
Replace withAlt+HWhat each match becomes. It can be empty: then the matches are deleted. It has its own history of 10. In a regular expression replacement, \0 to \9 insert parts of the match (section 8).
The optionsAlt+U Alt+G Alt+E Alt+A Alt+W Alt+TThe same as in the Find dialog (section 4).
Search backwardsAlt+BFind, Replace and Replace & Find move towards the start of the document instead of the end.
▸ Replace AllAlt+POpens or closes the Replace All row.
Close dialogAlt+DWhen on (the default), the dialog closes after In Session, In Document or In Selection.
In SessionAlt+OReplaces every match in every open document, after a question (section 10).
In DocumentAlt+IReplaces every match in the current document.
In SelectionAlt+LReplaces every match inside the selected text only.
CloseEscapeCloses the dialog.
FindAlt+F, Enter in Search for, F3Finds the next match (or the one before, with Search backwards) and selects it, without replacing anything.
ReplaceAlt+RIf the selection is a match, it is replaced, and Replace does not move on to the next one. If the selection is not a match (or nothing is selected), Replace only finds and selects the next match, so you can look at it first and press Replace again.
Replace & FindAlt+N, Enter in Replace withReplaces the selected match, if it is one, and then finds the next match. Press it again and again to step through the document, replacing as you go. This is the default button.

Shift+F3 in the Replace dialog searches in the direction opposite to Search backwards. Shift+Enter does the same as Enter here. Inside the dialog, Ctrl+F changes it to the Find dialog and Ctrl+H changes it back; each keeps its own Search for text.

When Case sensitive is on, "Use regular expressions" is off, and the Replace with text is the same as the Search for text, a replacement would change nothing. Then Replace, Replace & Find and all the Replace All buttons only beep (if beeping is on) and do nothing.

4. The search options

The options are the same in the Find and Replace dialogs, but each dialog keeps its own settings.

OptionMeaning
Case sensitiveWhen off (the default), Name, name and NAME all match, and so do the letters of every language: É and é, Σ, σ and ς, Ä and ä. Plain text compares each character by Unicode's case folding, so a match can even differ in length from the text you typed (the Kelvin sign K matches k). Regular expressions ignore case for every letter as well.
Match only a whole wordThe match must not have a word character directly before or after it. Searching count then finds count but not counter or recount. Word characters are letters, digits, the underscore, and every non-ASCII character.
Match from start of wordThe match must not have a word character directly before it, but may go on into a longer word: count finds count and counter, but not recount. It is greyed while "Match only a whole word" is on, because a whole word already starts a word.
Use regular expressionsThe Search for text is a regular expression (section 7). While it is on, "Use escape sequences", "Match only a whole word" and "Match from start of word" are greyed and ignored: a regular expression has its own escapes and its own word anchors (\b, \<, \>).
Use multi-line matchingCan be chosen only while "Use regular expressions" is on. Lets a match go across line ends (section 7).
Use escape sequencesFor plain text: lets you type special characters such as a tab or a line end (section 8). A plain-text search with \n in it can find text across a line end.
Search backwardsReplace dialog only: Find, Replace and Replace & Find move towards the start of the document.

A greyed option keeps its check mark, so when you switch regular expressions off again the options come back as they were.

5. Find Next and Find Previous

Next, Previous, Find, Replace & Find, the toolbar's Find field, and the menu items Find Next and Find Previous all search in the same way.

A match is never empty. A regular expression that can match nothing at all, such as ^ on its own or x*, only finds places where it matches at least one character. This keeps Next from standing still.

You press Next Is the text valid? Beep, show the reason ("Bad regex: ...").The keyboard goes to Search for. Search from the end of the selectionto the end of the document. Found? Select the match and scroll to it.The field is normal. Did the search start at the very top?Then the whole text was searched. It says: "x" was not found.A beep; the field turns red. Is "Always wrap search" on? If not, ask"Wrap search and find again?" Search again from the top."Wrapped around to the start." no yes yes no yes no Cancel(the dialog stays closed) on, or Find found not found
Find Next step by step. Find Previous is the same with "start" and "end" swapped.

Find Next and Find Previous without the dialog

Search > Find Next (Ctrl+G or F3) and Search > Find Previous (Ctrl+Shift+G or Shift+F3) repeat the search with the text and the options of the Find dialog, whether the dialog is open or closed. They use the Find dialog's settings even when you last worked in the Replace dialog. If the Find dialog has no text yet, they open the Find dialog instead.

6. When the dialog closes by itself

Some actions close the dialog when they are done, so you can go on working in the document. When it closes, the keyboard goes back to the editor. The dialog remembers where it was on the screen and opens there the next time.

DialogActionThe dialog closes when
FindNext, PreviousPreferences > General > Miscellaneous > "Hide the Find dialog" is on (it is off by default)
FindMark, In Session, In Document"Close dialog" is on (it is on by default)
ReplaceIn Session, In Document, In Selection"Close dialog" is on (it is on by default)
ReplaceFind, Replace, Replace & Findnever
BothClose, Escape, the window's close buttonalways
Bothan action that cannot run (empty field, bad regular expression, replacing a text with itself)never: the dialog stays and the Search for field gets the keyboard

7. Regular expressions

With "Use regular expressions" on, the Search for text is a POSIX extended regular expression, the kind that grep -E uses. Most simple expressions from other editors work the same. Unryu also understands a few shortcuts that people often type. Regular expressions work on bytes: . and a bracket such as [^x] match one byte, so a letter outside ASCII (é, ü, a Chinese character) counts as two to four of them. \w, \b, \<, \> and the character classes know only the ASCII letters. This is what you can use:

WriteTo match
.any one character except a line end
[abc], [a-z], [^0-9]one character from the set, or (with ^) not from the set
[[:space:]], [[:digit:]], [[:alpha:]], [[:alnum:]], [[:upper:]], [[:lower:]], [[:punct:]]the POSIX character classes, inside brackets
*, +, ?, {2}, {2,5}the item before it: zero or more, one or more, zero or one, exactly 2, 2 to 5 times
a|beither a or b
( )a group; the replacement can use it as \1 to \9
^, $the start and the end of a line
\b, \B, \<, \>a word boundary, not a word boundary, the start of a word, the end of a word
\w, \W, \s, \Sa word character or not, a space character or not (outside brackets only; inside brackets use [:alnum:]_ or [:space:])
\d, \Da digit or not a digit (Unryu turns these into [0-9] and [^0-9]; they work outside brackets only)
\n, \t, \ra line end, a tab, a carriage return (also inside brackets)
\., \(, \[, \\ ...the character itself, without its special meaning

Things that other regular expression engines have and that do not work here: lazy repeats such as *?, look-ahead and look-behind such as (?=...), \d inside brackets, and \xNN character codes. Use the character itself, or a bracket expression, instead.

"Case sensitive" works with regular expressions too. "Match only a whole word" and "Match from start of word" do not: use \b, \< and \> in the expression instead.

One line at a time, or multi-line

Normally Unryu matches a regular expression against one line at a time, so a match never goes over a line end. Turn on "Use multi-line matching" to let a match continue onto the next lines. Even in multi-line mode, ^ and $ still mean the start and end of each line, and . still does not match a line end. To cross a line end, write it: \n or [[:space:]].

Text int a; int b = a; Expression: a;[[:space:]]+int One line at a time (the default): no match Multi-line: matches "a;", the line end, " int" The same in both modes ^ is the start of a line and $ is the end of a line. "." never matches a line end. In multi-line mode, a bracket such as [^x] does not match a line end either; \n and [[:space:]] do. A match must contain at least one character, so an expression such as ^ alone finds nothing.
Multi-line matching lets the match run over the line end between the two lines.

8. Escape sequences and replacement texts

Plain text with "Use escape sequences"

When "Use escape sequences" is on (and regular expressions are off), these sequences in the Search for and the Replace with fields stand for special characters:

WriteFor
\na line end
\ta tab
\ra carriage return
\\one backslash
\xNNthe byte with the two-digit hexadecimal code NN, for example \x41 for A

A backslash before any other character stays as typed. With the option off, every backslash is an ordinary character. Example: search for ;\n} to find a semicolon at the end of a line that is followed by a closing brace at the start of the next line.

The replacement of a regular expression

With regular expressions on, the Replace with text can use parts of what was matched:

WriteTo insert
\0the whole match
\1 to \9what the first to ninth group ( ) matched; nothing if that group took no part in the match
\n, \t, \ra line end, a tab, a carriage return
\\one backslash
\ and any other characterthat character

Example: search for (\w+) = (\w+); and replace with \2 = \1; to swap the two sides of each assignment.

9. Find All, Mark, and the results in the message window

In Document and In Session

In the Find dialog, open the Find All row and choose In Document (Alt+I) to list every match in the current document, or In Session (Alt+O) to list every match in all open documents. The results go to the Messages tab of the message window at the bottom of the main window (see The Window). If the message window is hidden, it is shown.

File Edit Search Navigate View Document Build Tools Help Sidebar a.c | *b.c (the documents) Details Status Compiler Messages b.c:26: static int hex_value(char digit) { b.c:44: } else if (next == 'x' && hex_value(source[at + 2]) ... Found 5 matches for "hex_value". status bar
The results of In Document in the Messages tab. Click a row to go to that match. View > Show Message Window shows and hides the message window.

Going to a result

Mark

Mark (Alt+M) in the Find All row highlights every match in the current document with the theme's search mark color, and reports the count, for example Found 3 matches for "x". The marks follow the text: when you edit, the matches are found again, so new matches get marked and changed ones lose their mark. The marks stay until you choose Search > Clear Marks, mark something else, or switch to another document. The colors are the search-mark and search-mark-text items of the editor theme (see Themes).

Find Usage and Find Document Usage

Search > More > Find Usage (Ctrl+Shift+E), with the cursor on a name of code and nothing selected, lists every place that means that name, across the whole project, by what Unryu understands of the code (Code analysis):

Each place is a line in Messages: the file, the line, and the line's text with the name marked; choosing it opens the file there. The summary says how many places in how many files mean the name. Otherwise (a selection, or no name of code at the cursor) Find Usage lists every use of the text in all open documents; Find Document Usage (Ctrl+Shift+D) does that for the current document only. These work like In Session and In Document, without the dialog:

Rename Symbol

Search > More > Rename Symbol... renames the name at the cursor everywhere Find Usage would list it. It asks for the new name (letters, digits and _, not starting with a digit), then says how many places in how many files it will change and asks again. Open documents are edited, and one Undo in each takes it back; files that are not open are written at once, and Undo does not reach them. An open document with unsaved changes (other than the one in front) is left out: save it first. A place where the name is no longer written (the file changed since it was read) is left as it is; the status bar says how many places were renamed and how many were left.

The symbol popup that appears over a name also offers these searches: its "all N uses, in Messages" link runs Find Document Usage on that name, and when a project is open, its "in the project ..., in Messages" link runs a Find in Files for the name over the whole project folder (see Analysis).

10. Replace All

The Replace All row of the Replace dialog replaces every match at once:

In each document, all the replacements together are one edit: one Undo (Ctrl+Z) in that document takes them all back. The view does not jump: the cursor and the scroll position stay where they were. A document that changed gets the * on its tab and its recovery copy is updated, as after any edit (see Files and Recovery). Nothing is saved to disk until you save.

For each document that changed, the Status tab of the message window gets a line such as b.c: replaced 15 occurrences of "byte" with "octet". After In Session, Unryu shows the Status tab, so you can see which documents changed. When more than one changed, the status bar and the dialog show a total such as Replaced 17 matches in 2 documents. When nothing matched, the message is No matches found for "x". and Unryu beeps.

In Session stops a compiler check that is running on the current document before it starts (see Safety), because the check reads the text that is being replaced.

11. Find in Files

Search > Find in Files... (Ctrl+Shift+F) searches the files of a folder on disk, including files that are not open. The results go to the Messages tab, where a click opens the file at the match.

Find in Files Search for: ▾ File patterns: custom ▾ *.c *.h ▾ Directory: ▾ ... Encoding: UTF-8 ▾ Use regular expressions Invert search results Recurse in subfolders Case sensitive Match only a whole word Extra options: Cancel Find Alt+S. ▾ or Alt+Down: the last 10 texts. "all" or "custom". The patterns field (Alt+P) and its history work only in "custom". Alt+D. "..." opens a folder chooser. The encoding the files are read in. Alt+U, Alt+A (on by default) Alt+I, Alt+W Alt+R Alt+X. Greyed unless a grep program is set. Escape: Cancel. Enter: Find.
The Find in Files dialog. A field that stops the search (an empty text, a bad regular expression, a folder that does not exist) turns red until you type in it.

The fields and options

ControlKeyWhat it does
Search forAlt+SThe text or regular expression to find. It is filled in from the selection or the word at the cursor, as in the Find dialog.
File patterns: all / custom(click it)It has no key of its own, and Tab does not reach it. "all" searches every file. "custom" searches only files whose name fits one of the patterns. Choosing "custom" puts the keyboard in the patterns field.
The patternsAlt+P (custom only)Shell-style patterns separated by spaces, such as *.c *.h or Makefile *.mk. * stands for any text, ? for any one character, [abc] for one of those characters. A pattern is compared with the file's name only, not its folder. Up to 64 patterns. The field has its own history of 10.
DirectoryAlt+DThe folder to search. It has its own history of 10.
...Opens a "Select Folder" dialog that starts at the folder in the Directory field, and puts the chosen folder into the field.
EncodingAlt+NThe character encoding of the files. Each file is converted from this encoding before it is searched, so you can search files in, say, ISO-8859-1 with text typed normally. The list is grouped by region. "Without encoding" reads the bytes as they are. The default is UTF-8. A file that cannot be converted from the chosen encoding is skipped.
Use regular expressionsAlt+UThe text is a regular expression, as in section 7. Each line is searched on its own, as grep does, so there is no multi-line mode and no escape sequences option here (Geany's Find in Files has neither).
Invert search resultsAlt+ILists the lines that do not match, like grep -v.
Recurse in subfoldersAlt+RAlso searches every folder below the directory, not only the directory itself.
Case sensitiveAlt+AUpper and lower case must be as typed. On by default.
Match only a whole wordAlt+WThe match must be a whole word.
Extra optionsAlt+XMore options for the grep program of Preferences > Tools > Grep, such as -P or --exclude-dir=build. The check turns them on; the field holds them. Both are greyed when no grep program is set, since Unryu then searches by itself. See "Using an external grep program" below.
CancelEscapeCloses the dialog without searching.
FindEnterStarts the search and closes the dialog.

Tab and Shift+Tab move between the text fields (the patterns field only in "custom"). Alt+Down opens the history of the field that has the keyboard. Alt+N opens the Encoding list (so does a click). While it is open, Up, Down, Home and End move in it, Enter takes the encoding, and Escape closes the list without a change. Either way the keyboard goes back to the text field.

Where the search looks

When the dialog opens, the Directory field is filled in like this:

If the Directory field is empty, the keyboard starts there; otherwise it starts in Search for.

Unryu reads the files itself, in a background thread, so the editor stays responsive during a long search. In each folder it searches the files first, in name order, and then the folders below it (with Recurse). It skips:

Each line is searched on its own, so a match never goes over a line end, and ^ and $ are the start and end of the line. A UTF-8 byte order mark at the start of a file is ignored.

The results

When the search starts, the dialog closes and the Messages tab is cleared and shown, with a first row such as Searching for "x" in *.c *.h (in directory: /home/me/project). The status bar says "Searching...". Results appear as they are found, one row for each matching line: path:line:text. The path is relative to the searched directory, the text is the line without the spaces at its ends (at most 399 bytes of it), and the match is highlighted. With Invert search results, the rows have no highlight.

At the end comes a summary row: Search completed with N matches. (N counts lines), No matches found., or, with an external grep that cannot be started, Cannot execute grep tool "...". Unryu beeps when the search ends, if beeping is on.

You can look at another tab of the message window while the search runs. The label of the Messages tab then shows the state: the theme's tab-running color (blue by default) while the search runs, and its tab-success color when it ended with matches. The color goes away when you look at the tab again.

Click a row to open the file (or switch to its tab if it is already open) at that line. If the line is still long enough, the columns where the match was are selected (also when the text there has changed since). Search > Next Message and Previous Message step through the rows, as for Find All.

If the search cannot start, the dialog stays open, Unryu beeps, and the field at fault turns red:

Search > Stop Find in Files stops a search that is still running, and keeps what it found so far. Starting a new Find in Files stops one that is still running too, and so does quitting Unryu.

Using an external grep program

Normally Unryu searches the files itself. If you prefer a grep program, enter it in Preferences > Tools > Tool paths > Grep:, for example grep or /usr/bin/grep. The field is empty by default, which means "Unryu searches by itself". With a program set, Find in Files runs it in the searched directory, directly and without a shell, so the search text is always passed as plain text and never interpreted by a shell. Unryu gives it these arguments:

The program's own words can include options, separated by spaces (up to 16 words; quotes are not understood). Its output is converted from the chosen encoding. Unryu finds the column of each match again with its own search, to highlight it; where grep and Unryu disagree (for example on \d, which Unryu understands but grep -E may not), the line is still listed, without a highlight. When the search stops, Unryu stops the program.

12. The Search menu

ItemDefault keyWhat it does
Find...Ctrl+FOpens the Find dialog (section 2).
Find NextCtrl+G, F3Finds the next match of the Find dialog's text, with its options (section 5).
Find PreviousCtrl+Shift+G, Shift+F3Finds the match before.
Find in Files...Ctrl+Shift+FOpens the Find in Files dialog (section 11).
Stop Find in FilesnoneStops a Find in Files search that is still running. The results found so far stay in the Messages tab, and the last row says "Search stopped after N matches." Greyed while no search runs.
Replace...Ctrl+HOpens the Replace dialog (section 3).
Next MessagenoneGoes to the next result row in the Messages tab (section 9).
Previous MessagenoneGoes to the result row before.
Go to Next MarkerCtrl+.Moves the cursor to the start of the next line that has a bookmark. Beeps when there is none.
Go to Previous MarkerCtrl+,Moves to the bookmarked line before.
Go to Line...Ctrl+LAsks for a line number and moves the cursor to the start of that line.
More ▸ Find Next SelectionCtrl+F3Finds the next place where the selected text, or else the word at the cursor, appears. It ignores the dialog's options: plain text, any case, not only whole words. At the end of the document it wraps, or asks, as Find Next does (section 5). Beeps when there is nothing to search for.
More ▸ Find Previous SelectionCtrl+Shift+F3The same, towards the start.
More ▸ Find UsageCtrl+Shift+ELists the places that mean the name at the cursor, across the project; with a selection, its uses in all open documents (section 9).
More ▸ Rename Symbol...Renames the name at the cursor wherever Find Usage lists it (section 9).
More ▸ Find Document UsageCtrl+Shift+DThe same, in the current document only.
More ▸ Mark AllCtrl+Shift+MMarks every place of the selected text (as written) or of the word at the cursor (as a whole word), case sensitive, like Mark. With the cursor on a marked match, it clears the marks instead, so the same key turns the marks on and off. With nothing at the cursor, it clears the marks.
More ▸ Go to Symbol DefinitionCtrl+TGoes to where the name at the cursor is defined (see Analysis).
More ▸ Go to Symbol DeclarationCtrl+Shift+TGoes to where it is declared.
Clear MarksnoneRemoves the highlighting of Mark and Mark All.

Markers. A marker is a bookmark on a line. Ctrl+M (Toggle Marker, listed under Search in Preferences > Keybindings) puts one on the cursor's line or takes it off; a click in the markers margin does the same. Document > Remove Markers removes them all. See Editing for markers, the markers margin and the change history.

Go to Line. The dialog remembers the last line you entered while Unryu runs. Besides a line number you can enter +N or -N to move N lines down or up from the cursor's line. A number past the end goes to the last line. The jump is recorded for Navigate > Back and Forward. The toolbar has its own Go to line field that works the same way. See Editing for Back and Forward.

The Find field on the toolbar

The toolbar has a Find field and a Find button (they are in the default toolbar). Type in the field and Unryu searches as you type: the match grows in place with each letter. Enter or the Find button finds the next match. Escape puts the keyboard back in the editor. The toolbar search is always plain text, ignores case, and wraps around the end of the document without asking. Nothing is found: the status bar says so and Unryu beeps. A Replace button can be added to the toolbar; it opens the Replace dialog. See The Window for the toolbar and how to change it.

13. Settings that are remembered

In Preferences

PreferenceDefaultMeaning
General > Miscellaneous > Search > Always wrap searchoffAt the end of the document, go on from the other end without asking.
General > Miscellaneous > Search > Hide the Find dialogoffClose the Find dialog after Next and Previous.
General > Miscellaneous > Search > Use the current word under the cursor for Find dialogsonFill in Search for with the word at the cursor when nothing is selected (Find, Replace and Find in Files).
General > Miscellaneous > Search > Use the current file's directory for Find in FilesonOpen Find in Files on the folder of the current file.
General > Miscellaneous > Beep on errors or when compilation has finishedonBeep when a search finds nothing, when an action cannot be done, and when Find in Files ends.
Tools > Tool paths > Grep:emptyThe grep program for Find in Files. Empty: Unryu searches by itself.
Various > fif-encodingUTF-8The encoding that the Find in Files dialog starts with. It also changes when you choose another encoding in the dialog. Enter a name from the Encoding list, such as UTF-8 or ISO-8859-1; a name Unryu does not know is refused.

Kept by the dialogs

The dialogs remember their options when you close them and after a restart. Unryu writes them to unryu.conf when it quits. You do not need to edit these keys by hand; they are listed so you know what is kept.

Key in unryu.confDefaultMeaning
find-case, find-whole-word, find-word-start, find-regex, find-multiline, find-escapes0The options of the Find dialog. (find-backwards is written too, but has no effect: Find has no Search backwards option.)
replace-case, replace-whole-word, replace-word-start, replace-regex, replace-multiline, replace-escapes, replace-backwards0The options of the Replace dialog.
find-close-dialog, replace-close-dialog1The "Close dialog" check of each dialog.
find-expanded, replace-expanded0Whether the Find All / Replace All row is open.
find-position, replace-position, fif-positionnoneWhere each dialog was on the screen.
fif-case1Find in Files: Case sensitive.
fif-whole-word, fif-regex, fif-invert, fif-recursive0Find in Files: the other options.
fif-files-mode, fif-patterns0, emptyFind in Files: "all" (0) or "custom" (2), and the custom patterns.
fif-encodingUTF-8Find in Files: the encoding.
fif-extra, fif-extra-options0, emptyFind in Files: the Extra options check, and its text.
always-wrap-search, hide-find-dialog, search-use-current-word, fif-current-dir, beep-on-errors, tool-grepThe preferences in the table above.

The texts themselves are not kept after a restart: Search for, Replace with, the Find in Files texts and directory, and all the history lists start empty each time Unryu starts. While Unryu runs, each dialog keeps its last texts and its histories.