Debian Codegraph @

book/src/jumplist.md

raw symbols SCIP
1 ## Using the jumplist
2
3 To help with quick navigation, Helix maintains a list of "jumps" called the jumplist.
4 Whenever you make a significant movement (see next section), Helix stores your selections from before the move as a jump.
5 A jump serves as a kind of checkpoint, allowing you to jump to a separate location, make edits, and return to where you were with your previous selections.
6 This way, the jumplist tracks both your previous location and your selections.
7 You can manually save a jump by using `Ctrl-s`.
8 To jump backward in the jumplist, use `Ctrl-o`; to go forward, use `Ctrl-i`. To view and select from the full jumplist, use `Space-j` to open the jumplist picker.
9
10 ### What makes a jump
11 The following is a non-exhaustive list of which actions add a jump to the jumplist:
12 - Switching buffers
13 - Using the buffer picker, going to the next/previous buffer
14 - Going to the last accessed/modified file
15 - Making a new file (`:new FILE`)
16 - Opening a file (`:open FILE`)
17 - Includes `:log-open`, `:config-open`, `:config-open-workspace`, `:tutor`
18 - Navigating by pickers, global search, or the file explorer
19 - `goto_file` (`gf`)
20 - Big in-file movements
21 - `select_regex` (`s`)
22 - `split_regex` (`S`)
23 - `search` (`/`)
24 - `keep_selections` and `remove_selections` (`K` and `<A-K>`)
25 - `goto_file_start` (`gg`)
26 - `goto_file_end`
27 - `goto_last_line` (`ge`)
28 - `:goto 123` / `:123` / `123G`
29 - `goto_definition` (`gd`)
30 - `goto_declaration` (`gD`)
31 - `goto_type_definition` (`gy`)
32 - `goto_reference` (`gr`)
33 - Other
34 - `Ctrl-s` manually creates a jump
35 - Trying to close a modified buffer can switch you to that buffer and create a jump
36 - The debugger can create jumps as you jump stack frames