Omnikar
ed97ecceb8
Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes ( #1414 )
...
* Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes
* `cargo xtask docgen`
3 years ago
Kirawi
ea095ca5fb
Optimize lsp_pos_to_pos ( #1423 )
...
lines().count() is slow compared to len_lines()
3 years ago
Triton171
4da050b4bb
Add basic indentation for languages without treesitter-based indentation rules (always use the indent of the current line for a new line). ( #1341 )
...
Fix several bugs in the treesitter indentation calculation.
Co-authored-by: Triton171 <triton0171@gmail.com>
3 years ago
Sebastian Neubauer
8f2af71340
Add LLVM TableGen highlighting ( #1409 )
...
Add a tree-sitter grammar and highlights for TableGen files.
TableGen and its grammar are described here:
https://llvm.org/docs/TableGen/index.html
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
3 years ago
Kirawi
93a948d889
switch redundant current! usage to doc! ( #1416 )
3 years ago
Martin Junghanns
aaa42e1a69
Underline diagnostics in bogster theme ( #1399 )
3 years ago
Flakebi
0dab6c8c17
Fix markdown code-block highlighting
...
Markdown code blocks should be highlighted as a single block, so set
injection.include-children.
3 years ago
Omnikar
43c1704fb2
Handle `NotFound` and `Cancelled` for keymap lookup
3 years ago
Omnikar
592fa1d756
Merge branch 'master' into help-command
3 years ago
Omnikar
f0c1c2d93a
Add documentation
...
* `move_next_long_word_start`
* `move_prev_long_word_start`
* `move_next_long_word_end`
* `extend_next_long_word_start`
* `extend_prev_long_word_start`
* `extend_next_long_word_end`
3 years ago
Omnikar
94eade9dd7
Fix lint issues
3 years ago
Omnikar
d18d745392
Implement `:help <keybind>` for non-branching key sequences
3 years ago
Omnikar
cc4c78608b
Make `:help topics` open in a split
3 years ago
Alexis Mousset
8a019b423f
Detect workspace root using language markers ( #1370 )
...
* Detect workspace root using language markers
* Avoid allocating root_markers
* Update helix-core/src/lib.rs
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Update helix-core/src/lib.rs
Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
3 years ago
Omnikar
835d5152e5
Implement `:help topics` and document "Words vs. WORDS"
...
`:help topics` will open a fuzzy picker of files in
`runtime/help/topics` for non-command-related help topics.
3 years ago
Omnikar
c108d565a1
Add documentation
...
* `:write-quit`
* `:write-quit!`
* `:write-all`
* `:write-quit-all`
* `:write-quit-all!`
* `:quit-all`
* `:quit-all!`
3 years ago
Omnikar
efbd4e944f
Add documentation
...
* `page_up`
* `page_down`
* `half_page_up`
* `half_page_down`
* `select_all`
3 years ago
Michael Davis
8fda87af2b
add tree-sitter-git-rebase ( #1402 )
...
* add submodule on tree-sitter-rebase, add to languages
* add basic highlights query
* inject bash in execute statements
* update tree-sitter-rebase
* tree-sitter-rebase->tree-sitter-git-rebase
* get injection working with tree-sitter-git-commit
* set scope under source.gitrebase
* unset include-children on commit message injections
* Revert "unset include-children on commit message injections"
This reverts commit 2ecee155ea
.
* fix generated language docs
* use rebase_command scopes from tree-sitter-git-commit
3 years ago
Blaž Hrastnik
a066f59dc8
Don't just filter commands by fuzzy match, also order the matches
3 years ago
Omnikar
32d0ef45b4
Add documentation
...
* `:open`
* `:buffer-close`
* `:buffer-close!`
* `:write`
* `:new`
3 years ago
Omnikar
aee10cf741
Add documentation
...
* `replace`
* `switch_case`
* `switch_to_uppercase`
* `switch_to_lowercase`
3 years ago
Omnikar
3dcd18d621
Merge branch 'master' into help-command
3 years ago
Michael Davis
bcf3808e97
Add tree-sitter-git-diff ( #1373 )
...
* add submodule on tree-sitter-git-diff
* add git-diff highlights
* inject git-diff into git-commit
* update tree-sitter-git-commit with fix for bad diff case
* add git-diff to language support docs
* include-children in diff injections
This ensures that children nodes of $.message are included in the
injection, such as $.user or issue/pr numbers. Without this change,
diffs containing '#' or '@' characters can trip up the injection and
be parsed separately.
See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629
* set diff language's scope as source.diff
3 years ago
ath3
49444f9c05
Convert Windows style path separator in completers to Unix style ( #1389 )
3 years ago
Sebastian Neubauer
8c29b76bcc
Improve llvm highlighting and queries ( #1388 )
...
* Improve llvm highlighting and queries
The llvm tree-sitter parser was updated to support scopes and more
accurate highlighting.
* Group highlight expressions better
3 years ago
WindSoilder
f1ed042c84
Fix: when goto normal mode, only want to remove indentation if the line is blank with no text following ( #1349 )
...
* when opened new line contains other characters after current position, don't dedent
* abstract checking logic
3 years ago
Stuart Hinson
34db33e1dc
Use a fuzzy matcher for commands ( #1386 )
...
* Use a fuzzy matcher for commands
* Take Clippy up on its suggestion
* Rescope FUZZY_MATCHER
3 years ago
Matouš Dzivjak
bd2ab5be43
feat(commands): ensure_selections_forward ( #1393 )
...
* feat(commands): ensure_selections_forward
Add command that ensures that selections are in forward direction.
Fixes: https://github.com/helix-editor/helix/issues/1332
* Add keybinding for ensure_selections_forward
Add `A-:` keybinding for the ensure_selections_forward command.
* Re-use range.flip for flip_selections command
3 years ago
Omnikar
c31cb68055
Update documentation
...
* `move_char_left`
* `move_char_right`
3 years ago
dependabot[bot]
dc1faa35cb
build(deps): bump anyhow from 1.0.51 to 1.0.52 ( #1392 )
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.51...1.0.52 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
1d2009e4f0
build(deps): bump chardetng from 0.1.15 to 0.1.17 ( #1390 )
...
Bumps [chardetng](https://github.com/hsivonen/chardetng ) from 0.1.15 to 0.1.17.
- [Release notes](https://github.com/hsivonen/chardetng/releases )
- [Commits](https://github.com/hsivonen/chardetng/compare/v0.1.15...v0.1.17 )
---
updated-dependencies:
- dependency-name: chardetng
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Omnikar
5b69e9b466
Fix indentation ( #1387 )
3 years ago
Omnikar
d52400042b
Reorder typable command help
3 years ago
Omnikar
eda195e715
Support `:help` for typable commands
3 years ago
Omnikar
4c02ab0994
Move `runtime/help/commands/` to `runtime/help/static-commands/`
3 years ago
Omnikar
911efce77d
Merge branch 'master' into help-command
3 years ago
Matouš Dzivjak
a4641a8613
feat(commands): sort command ( #1288 )
...
* feat(commands): sort/rsort command
Add basic implementation of sort command.
* Sort by selections instead, implement reverse sort
* Generate docs
* Rename sort! to rsort
3 years ago
Stuart Hinson
7001665342
Add ruby indents ( #1372 )
...
* Add ruby indents
* Include ruby in generated docs
3 years ago
Omnikar
b9d2dafb7d
Update `help` to parse keypresses like a macro
3 years ago
Omnikar
9bcc8a6e74
Merge branch 'master' into help-command
3 years ago
Omnikar
8340d73545
Extract macro parsing to `helix-view` and add unit tests
3 years ago
Omnikar
2d4bc0aec7
Change how macros separate keypresses
...
* Keypresses are no longer separated by spaces
* Single-character keypresses are serialized as-is
* Multi-character keypresses are delimited by `<>`
3 years ago
Ivan Tham
ee3eb4057a
Update macro display as [q] in message
3 years ago
Ivan Tham
b9cb3930e2
Mark macros as experimental in docs
...
Given that currently macro does not integrate well with registers and
the internal representation of macros is expected to be changed.
3 years ago
Ivan Tham
9a32617b30
Rename play macro to replay macro
...
Macro needs to be defined first before playing so replay is more accurate.
Also, replay have the same length as record which makes it looks nice.
3 years ago
Ivan Tham
5326a05117
Improve macro error handling
3 years ago
Ivan Tham
c7a59e24e6
Switch macro Q and q
3 years ago
Tamo
a306a1052a
Update settings at runtime ( #798 )
...
* feat: Update settings at runtime
fix the clippy warning
* update the documentation
* use to_value instead of to_vec+from_value
* drop the equal
* remove an useless comment
* apply suggestion
3 years ago
Michael Davis
6af0d51dc5
highlight rebase-commands as markup.raw
3 years ago
Michael Davis
c3fb86cbaa
tree-sitter-gitcommit->tree-sitter-git-commit
3 years ago