Michael Davis
0e083497a5
Persist register selection in pending keymaps
...
Previously the register selection (via `"`) would be lost in the middle
of any key sequence longer than one key. For example, `<space>f` would
clear the register selection after the `<space>` making it inaccessible
for the `file_picker` command.
This behavior does not currently have any effect in the default keymap
but might affect custom keymaps. This change aligns the behavior of the
register with count. Making this change allows propagating the register
to the `command_palette` (see the child commit) or other pickers should
we decide to use registers in those in the future. (Interactive global
search for example.)
1 year ago
Ilya Sovtsov
77e9a22aff
Add check for a non-zero value for tab width ( #7178 )
1 year ago
Alex Vinyals
204bac1706
commands(toggle): use pattern matching on the Value enum ( #7240 )
1 year ago
blt__
ba691f4fb0
Fix verilog grammar source repo and revision ( #7262 )
1 year ago
Jens Getreu
3e927ac578
Autumn theme: style "soft-wrap indicator" + maintenance ( #7229 )
...
Co-authored-by: Jens Getreu <getreu@getreu@web.de>
1 year ago
gibbz00
9926c2d292
Remove Keymap(KeyTrie) and simply use KeyTrie.
1 year ago
gibbz00
b8563685ec
Move `keymap.reverse_keymap()` to `Keytrie`:
...
The plan is let `Keymaps` simply store `KeyTrie`s, as the `Keymap(Keytrie)` wrapping serves little to no purpose.
1 year ago
gibbz00
eda4c79f2f
Remove pub keymap.name();
...
`keymap.name` is only used internally.
1 year ago
gibbz00
3d0bc72099
Place `Info::from_keymap()` contents in `keymap.infobox()`:
...
This makes it easier later control the order in which the key events
are presented.
1 year ago
gibbz00
19326d23d1
Keymap infobox: Idiomatic body tuple.
...
Does not change any behavior other than making the tuple slightly
more idiomatic. Keymap infobox shows key events, then the respective
description. This commit makes sure that order is used from the get go,
rather than flipping it midway.
1 year ago
gibbz00
3a0892f793
Exclude config no_op bindings in command palette.
1 year ago
gibbz00
39773e48d3
Remove superfluous command description pruning for keymap infobox:
...
Exist under the wrong (possibly just outdated) assumption that command
descriptions are written with their `KeyTrie` name prefixed
1 year ago
gibbz00
d20c1632a7
`helix_term::keymap`: Remove one-liner solely used for a test.
1 year ago
gibbz00
f7df53c948
Make `Keymap` a tuple struct.
1 year ago
gibbz00
daea97a89f
keymap: Rename KeyTrie::Leaf -> KeyTrie::MapppableCommand
...
The variant Sequence is technically also a leaf.
1 year ago
gibbz00
a56af221d7
keymap: Derive `Default` for KeyTrieNode
1 year ago
Alexander Brevig
78e8695420
Add support for Forth ( #7256 )
1 year ago
Tobias Clasen
71688a387b
Recognize 'make' file-type as Makefile ( #7212 )
1 year ago
dependabot[bot]
9f5b965627
build(deps): bump regex from 1.8.3 to 1.8.4 ( #7249 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
6deb0e4ef7
build(deps): bump once_cell from 1.17.2 to 1.18.0 ( #7248 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
a56222cd0e
build(deps): bump url from 2.3.1 to 2.4.0 ( #7247 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
a8c99fb24c
build(deps): bump hashbrown from 0.13.2 to 0.14.0 ( #7246 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
1d114ecb6e
build(deps): bump chrono from 0.4.25 to 0.4.26 ( #7245 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
cd01dc886a
build(deps): bump libc from 0.2.144 to 0.2.145 ( #7244 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Alex Vinyals
a2b8cfdb8c
feat(core): add plaintext matching fallback to tree-sitter matching ( #4288 )
1 year ago
Michael Davis
428d33ab50
Exit gracefully on termination signals ( #7236 )
1 year ago
Alex Vinyals
d5707a4696
feat(commands): allows cycling option values at runtime ( #4411 )
1 year ago
Ivan Tkachuk
2022e6175b
Add blueprint language ( #7213 )
...
* Add blueprint tree-sitter support
* Add blueprint lsp support
* Run cargo xtask docgen
1 year ago
Rich Seymour
751da01303
Update install.md instructions regarding symlinks ( #7231 )
...
* Update install.md
Fixes `ln` command line bug that could hit users moving from packaged to source builds.
* Remove extra 'how to' command example
1 year ago
avaunit02
232d9f96a0
Fix textobject keybindings in usage docs ( #7197 )
2 years ago
Pascal Kuthe
de0ef8af15
fix UB in diff gutter ( #7227 )
2 years ago
Zisulin Morbrot
d511122279
Add description for 'ui.text.focus' in theme docs ( #7177 )
2 years ago
zetashift
92380540b8
chore: update scala tree-sitter grammar ( #7147 )
...
* chore: update scala tree-sitter grammar
* Add locals.scm for Scala
2 years ago
dependabot[bot]
a726799a4e
build(deps): bump log from 0.4.17 to 0.4.18 ( #7175 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
8bd841136a
build(deps): bump once_cell from 1.17.1 to 1.17.2 ( #7174 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
825e7c4976
build(deps): bump tokio from 1.28.1 to 1.28.2 ( #7173 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
f694c24ac8
build(deps): bump regex from 1.8.2 to 1.8.3 ( #7172 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
d62fb8c8d7
build(deps): bump chrono from 0.4.24 to 0.4.25 ( #7171 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
a367a713ef
build(deps): bump cachix/install-nix-action from 20 to 21 ( #7170 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Ethan Wilkes
3334e7e4b2
fixed repeat_last_motion extends selection ( #7159 )
2 years ago
yvt
3a8592abdb
feat(languages): recognise `.gir` as XML ( #7152 )
2 years ago
Jimmy Zelinskie
b107814e39
languages: add .zimrc to bash filetypes ( #7146 )
2 years ago
Gammut
86ef389c0d
Highlight query improvements for java and typescript ( #7145 )
...
* Add missing queries to java highlights
* Fix generic type bracket highlights in typescript
2 years ago
Martin Weinelt
61a89956e3
book: Mention Helix package in nixpkgs ( #7064 )
2 years ago
Ravi Shekhar Jethani
6e647e83ed
Update spacebones_light.toml ( #7125 )
...
Better contrast between type variable and its members
2 years ago
Casper Rogild Storm
1dd1735909
Correct selection color ( #7138 )
2 years ago
Ikko Eltociear Ashimine
349e2b5f0e
Fix typo in syntax.rs ( #7114 )
...
seperator -> separator
2 years ago
William Etheredge
a2e11af608
Support hidden justfiles ( #7088 )
2 years ago
Brandon Sprague
16375cd94a
Treat 'Vagrantfile' files as Ruby code ( #7112 )
...
`Vagrantfile`s are configuration files for the [vagrant](https://www.vagrantup.com/ ) tool, and they are written in Ruby. Even as vagrant [is ported to Go](https://www.hashicorp.com/blog/toward-vagrant-3-0 ), `Vagrantfile`s [will be written in Ruby](https://developer.hashicorp.com/vagrant/docs/experimental/vagrant_go )
When a Vangrantfile is created, it starts with these lines:
```
```
But since Helix (quite reasonably) doesn't change editor behavior based on file contents, adding this to `languages.toml` seems like a reasonable way to get this functionality.
2 years ago
Viktor Kleen
0c21c227e1
Update languages.toml for Nickel ( #7059 )
2 years ago