Vim Mode¶
Vim mode adds keyboard-driven navigation and commands. Enable it from the
settings panel with the Vim Mode toggle. When Vim mode is off, these Vim keys
are ignored and the normal app shortcuts keep their usual behavior.
When Vim mode is on, a single-line command bar is shown at the bottom of the window. It is used for commands, searches, counts, and short status messages.
Normal-mode keys¶
These keys work when Vim mode is enabled and the command bar is not actively
editing a : command or / search.
Key |
Action |
|---|---|
|
Pan left by one pan step. |
|
Pan right by one pan step. |
|
Zoom out one step. |
|
Zoom in one step. |
|
Jump to the start of the current sequence. |
|
Jump to that 1-based position in the current sequence. For example, |
|
Jump to the end of the current sequence. |
|
Jump to the start of the next contig. |
|
Jump to the start of the previous contig. |
|
Move to the next search hit. |
|
Move to the previous search hit. |
|
Move to the next annotation feature when a feature is selected. |
|
Move to the previous annotation feature when a feature is selected. |
|
Save the current view as a mark. For example, |
|
Load a mark. For example, |
|
Toggle between single genome view and comparison view. |
|
Quit the app. |
|
Open the Vim command prompt. |
|
Open the Vim search prompt. |
The pan and zoom keys apply to the active view. Browser-only navigation, such as
gg, G, contig jumps, feature jumps, go, and Vim / search, requires the
single genome browser view.
Counts¶
Counts can be typed before several normal-mode commands. The count is shown in the command bar while it is being entered.
Supported counted commands:
Command |
Meaning |
|---|---|
|
Pan left by that many pan steps. |
|
Pan right by that many pan steps. |
|
Move forward by that many search hits. |
|
Move backward by that many search hits. |
|
Jump to that position in the current sequence. |
|
Jump forward by that many contigs. |
|
Jump backward by that many contigs. |
|
Move forward by that many annotation features. |
|
Move backward by that many annotation features. |
Contig navigation clamps at the first or last contig. Feature navigation clamps at the first or last feature. In concatenate view, feature navigation continues across contig boundaries and skips contigs that have no annotation features.
Marks¶
Marks save and restore view positions.
m<letter>saves the current view to a mark.'<letter>loads that mark.
For example:
masaves marka'ajumps to marka
When a mark is saved, the command bar shows mark <letter> set. When a mark is
loaded, it shows jumped to mark <letter>.
Marks use the same view-state saving code as the numbered temporary view slots. Browser view and comparison view keep separate saved-view banks.
Command prompt¶
Press : to type a Vim command. Press Enter to run it. Press Escape to exit
the prompt without running it.
If a : command is active, Escape only exits the command prompt. It does not
also close panels. If the command prompt is not active, Escape keeps the app’s
normal behavior.
Implemented commands:
Command |
Action |
|---|---|
|
Jump to a 1-based position in the current sequence. |
|
Jump to a range in the current sequence. |
|
Jump to a position in a named sequence. |
|
Jump to a range in a named sequence. |
|
Space-separated form for a named sequence. |
|
Space-separated range form for a named sequence. |
|
Open the native file picker, like pressing the open file button. |
|
Open a file from a filesystem path. |
|
Open the download panel, fill the accession box, and start download-and-load. |
|
Switch to a theme. This uses standard Vim-style |
|
Switch to single genome view. |
|
Switch to comparison view. |
|
Quit the app. |
|
Quit the app. |
Position and range examples:
:go 123
:go 100-250
:go contig1:123
:go contig1:100-250
:go sample:contig1:500
:go sample:contig1 500
The colon form is the preferred sequence syntax. The space-separated sequence form is also available when it is clearer for sequence names that contain colons.
Open examples:
:open
:open /path/to/foo.fasta
:open "/path/to/foo bar.fasta"
Download example:
:download GCF_000005845.2
Search prompt¶
Press / to type a search. Press Enter to run it. Press Escape to exit the
prompt without running it.
Searches open the search panel with the results.
The first word chooses the search type:
annotation, or any unambiguous prefix such asa,an, orannotdna, or any unambiguous prefix such asdordn
Annotation search examples:
/a gene1
/an contig1 gene1
/annot contig2 foo bar
DNA search examples:
/d ACGT
/dna contig24 gtcgtacgtcag
If the search prompt contains a single word made only of A, C, G, and T
characters, it is treated as a whole-genome DNA search:
/ACGT
For annotation and DNA searches, if the first word after the search type matches a sequence name, the search is restricted to that sequence. Otherwise the search runs across all sequences and the rest of the text is treated as the query.
Completion and history¶
Press Tab in the command bar to cycle through available completions.
Completion is implemented for:
:command names, such asgo,open,download,colorscheme,view,q, andquitsequence names after
:gotheme names after
:colorschemesingleandcomparisonafter:viewsequence names after the search target in
/annotationor/dnasearches
Press Up and Down in the command bar to move through prompt history.
History is session-only, keeps the last 100 commands, and is stored separately
for : commands and / searches.