mirror of https://github.com/helix-editor/helix
Compare commits
4 Commits
c8f6ac6bf9
...
1d6e7dfca0
Author | SHA1 | Date |
---|---|---|
|
1d6e7dfca0 | |
|
395a71bf53 | |
|
1e4bf6704a | |
|
7a2d325fa6 |
|
@ -11,6 +11,7 @@
|
||||||
- [Textobjects](./textobjects.md)
|
- [Textobjects](./textobjects.md)
|
||||||
- [Syntax aware motions](./syntax-aware-motions.md)
|
- [Syntax aware motions](./syntax-aware-motions.md)
|
||||||
- [Pickers](./pickers.md)
|
- [Pickers](./pickers.md)
|
||||||
|
- [Jumplist](./jumplist.md)
|
||||||
- [Keymap](./keymap.md)
|
- [Keymap](./keymap.md)
|
||||||
- [Command line](./command-line.md)
|
- [Command line](./command-line.md)
|
||||||
- [Commands](./commands.md)
|
- [Commands](./commands.md)
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
## Using the jumplist
|
||||||
|
|
||||||
|
To help with quick navigation, Helix maintains a list of "jumps" called the jumplist.
|
||||||
|
Whenever you make a significant movement (see next section), Helix stores your selections from before the move as a jump.
|
||||||
|
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.
|
||||||
|
This way, the jumplist tracks both your previous location and your selections.
|
||||||
|
You can manually save a jump by using `Ctrl-s`.
|
||||||
|
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.
|
||||||
|
|
||||||
|
### What makes a jump
|
||||||
|
The following is a non-exhaustive list of which actions add a jump to the jumplist:
|
||||||
|
- Switching buffers
|
||||||
|
- Using the buffer picker, going to the next/previous buffer
|
||||||
|
- Going to the last accessed/modified file
|
||||||
|
- Making a new file (`:new FILE`)
|
||||||
|
- Opening a file (`:open FILE`)
|
||||||
|
- Includes `:log-open`, `:config-open`, `:config-open-workspace`, `:tutor`
|
||||||
|
- Navigating by pickers, global search, or the file explorer
|
||||||
|
- `goto_file` (`gf`)
|
||||||
|
- Big in-file movements
|
||||||
|
- `select_regex` (`s`)
|
||||||
|
- `split_regex` (`S`)
|
||||||
|
- `search` (`/`)
|
||||||
|
- `keep_selections` and `remove_selections` (`K` and `<A-K>`)
|
||||||
|
- `goto_file_start` (`gg`)
|
||||||
|
- `goto_file_end`
|
||||||
|
- `goto_last_line` (`ge`)
|
||||||
|
- `:goto 123` / `:123` / `123G`
|
||||||
|
- `goto_definition` (`gd`)
|
||||||
|
- `goto_declaration` (`gD`)
|
||||||
|
- `goto_type_definition` (`gy`)
|
||||||
|
- `goto_reference` (`gr`)
|
||||||
|
- Other
|
||||||
|
- `Ctrl-s` manually creates a jump
|
||||||
|
- Trying to close a modified buffer can switch you to that buffer and create a jump
|
||||||
|
- The debugger can create jumps as you jump stack frames
|
|
@ -1022,6 +1022,7 @@ shebangs = []
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
language-servers = [ "nil", "nixd" ]
|
language-servers = [ "nil", "nixd" ]
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
formatter = { command = "nixfmt" }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "nix"
|
name = "nix"
|
||||||
|
@ -4243,10 +4244,11 @@ comment-token = "#"
|
||||||
block-comment-tokens = ["#-", "-#"]
|
block-comment-tokens = ["#-", "-#"]
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
language-servers = ["koto-ls"]
|
language-servers = ["koto-ls"]
|
||||||
|
formatter = {command = "koto", args = ["--format"]}
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "koto"
|
name = "koto"
|
||||||
source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "b420f7922d0d74905fd0d771e5b83be9ee8a8a9a" }
|
source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "2ffc77c14f0ac1674384ff629bfc207b9c57ed89" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "gpr"
|
name = "gpr"
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
"*"
|
"*"
|
||||||
"/"
|
"/"
|
||||||
"%"
|
"%"
|
||||||
|
"^"
|
||||||
"+="
|
"+="
|
||||||
"-="
|
"-="
|
||||||
"*="
|
"*="
|
||||||
"/="
|
"/="
|
||||||
"%="
|
"%="
|
||||||
|
"^="
|
||||||
"=="
|
"=="
|
||||||
"!="
|
"!="
|
||||||
"<"
|
"<"
|
||||||
|
@ -99,12 +101,18 @@
|
||||||
(export
|
(export
|
||||||
(identifier) @namespace)
|
(identifier) @namespace)
|
||||||
|
|
||||||
(call
|
(chain
|
||||||
function: (identifier) @function.method)
|
start: (identifier) @function)
|
||||||
|
|
||||||
(chain
|
(chain
|
||||||
lookup: (identifier) @variable.other.member)
|
lookup: (identifier) @variable.other.member)
|
||||||
|
|
||||||
|
(call
|
||||||
|
function: (identifier)) @function
|
||||||
|
|
||||||
|
(call_arg
|
||||||
|
(identifier) @variable.other.member)
|
||||||
|
|
||||||
[
|
[
|
||||||
(true)
|
(true)
|
||||||
(false)
|
(false)
|
||||||
|
@ -139,13 +147,10 @@
|
||||||
|
|
||||||
(self) @variable.builtin
|
(self) @variable.builtin
|
||||||
|
|
||||||
(variable
|
(type
|
||||||
type: (identifier) @type)
|
_ @type)
|
||||||
|
|
||||||
(arg
|
(arg
|
||||||
(_ (identifier) @variable.parameter))
|
(_ (identifier) @variable.parameter))
|
||||||
|
|
||||||
(ellipsis) @variable.parameter
|
(ellipsis) @variable.parameter
|
||||||
|
|
||||||
(function
|
|
||||||
output_type: (identifier) @type)
|
|
||||||
|
|
|
@ -11,10 +11,6 @@
|
||||||
(call_args
|
(call_args
|
||||||
((call_arg) @parameter.inside . ","? @parameter.around) @parameter.around)
|
((call_arg) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||||||
|
|
||||||
(chain
|
|
||||||
call: (tuple
|
|
||||||
((element) @parameter.inside . ","? @parameter.around) @parameter.around))
|
|
||||||
|
|
||||||
(map
|
(map
|
||||||
((entry_inline) @entry.inside . ","? @entry.around) @entry.around)
|
((entry_inline) @entry.inside . ","? @entry.around) @entry.around)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue