aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Revert "helix-term: allow to backspace out-of the command prompt (#9828)" ↵Michael Davis2024-03-26
| | | | | | | | | (#10005) This reverts commit 0dc67ff8852ce99d40ad4464062ebe212b0b03a1. See the post-merge discussion in #9828. The old behavior was less surprising and we have other ways to abort from a prompt, so let's revert the behavior change.
* Fix regression in color-modesBlaž Hrastnik2024-03-26
| | | | Fixes #10006
* build(deps): bump the rust-dependencies group with 6 updates (#10007)dependabot[bot]2024-03-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps the rust-dependencies group with 6 updates: | Package | From | To | | --- | --- | --- | | [smallvec](https://github.com/servo/rust-smallvec) | `1.13.1` | `1.13.2` | | [arc-swap](https://github.com/vorner/arc-swap) | `1.7.0` | `1.7.1` | | [regex](https://github.com/rust-lang/regex) | `1.10.3` | `1.10.4` | | [indoc](https://github.com/dtolnay/indoc) | `2.0.4` | `2.0.5` | | [rustix](https://github.com/bytecodealliance/rustix) | `0.38.31` | `0.38.32` | | [which](https://github.com/harryfei/which-rs) | `6.0.0` | `6.0.1` | Updates `smallvec` from 1.13.1 to 1.13.2 - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.13.1...v1.13.2) Updates `arc-swap` from 1.7.0 to 1.7.1 - [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md) - [Commits](https://github.com/vorner/arc-swap/commits) Updates `regex` from 1.10.3 to 1.10.4 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.10.3...1.10.4) Updates `indoc` from 2.0.4 to 2.0.5 - [Release notes](https://github.com/dtolnay/indoc/releases) - [Commits](https://github.com/dtolnay/indoc/compare/2.0.4...2.0.5) Updates `rustix` from 0.38.31 to 0.38.32 - [Release notes](https://github.com/bytecodealliance/rustix/releases) - [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.31...v0.38.32) Updates `which` from 6.0.0 to 6.0.1 - [Release notes](https://github.com/harryfei/which-rs/releases) - [Changelog](https://github.com/harryfei/which-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/harryfei/which-rs/compare/6.0.0...6.0.1) --- updated-dependencies: - dependency-name: smallvec dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: arc-swap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: indoc dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: rustix dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: which dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* doc: small formatting corrections (#9986)Yomain2024-03-26
|
* Use the OS path separator instead of / (#10000)Mo2024-03-25
|
* Add narrow no-break space support (#9604)Quentin2024-03-25
|
* feat: Add `Ohm` language support (#9991)Novus Nota2024-03-24
| | | | | | | | | | | | | | | * feat: Add `Ohm` language support Hope this commit makes it into release :) * Update runtime/queries/ohm/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * chore: final newline --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add jump label color ("rosewater") to catppuccin themes (#9983)Armando Pérez Marqués2024-03-24
|
* Add jump label color to rose-pine themes (#9981)Tobias Brunner2024-03-24
|
* feat: add jump label color to onedark themeFlorent Nuttens2024-03-24
|
* feat: add jump label color to dark plus themeFlorent Nuttens2024-03-24
|
* feat: add jump label color to catppuccin themesFlorent Nuttens2024-03-24
|
* Add jump label color to horizon-dark theme (#9984)ves2024-03-24
|
* feat: add jump label color to dracula themes (#9973)Yomain2024-03-23
|
* Add an Amp-like jump commandPascal Kuthe2024-03-23
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* add reverse rope grapheme iteratorPascal Kuthe2024-03-23
|
* dismiss pending keys properly for mouse/pastePascal Kuthe2024-03-23
|
* use slices instead of Rc for virtual textPascal Kuthe2024-03-23
|
* Reimplement tree motions in terms of syntax::TreeCursorMichael Davis2024-03-23
| | | | | | | This uses the new TreeCursor type from the parent commit to reimplement the tree-sitter motions (`A-p/o/i/n`). Other tree-sitter related features like textobjects are not touched with this change and will need a different, unrelated approach to solve.
* Add a TreeCursor type that travels over injection layersMichael Davis2024-03-23
| | | | | | | | | | This uses the layer parentage information from the parent commit to traverse the layers. It's a similar API to `tree_sitter:TreeCursor` but internally it does not use a `tree_sitter::TreeCursor` currently because that interface is behaving very unexpectedly. Using the `next_sibling`/`prev_sibling`/`parent` API on `tree_sitter::Node` reflects the previous code's behavior so this should result in no surprising changes.
* syntax: Track parent LanguageLayer IDsMichael Davis2024-03-23
| | | | | | | This commit adds a `parent` field to the `LanguageLayer`. This information is conveniently already available when we parse injections. This will be used in the child commit to create a type that can traverse injection layers using this information.
* Fix repeat last motion for goto next/prev diagnostic (#9966)Jaakko Paju2024-03-23
|
* fix: undefined bufferline colors (#9960)Carter Watson2024-03-21
|
* Add rclone.conf as a glob to make it behave as an ini file (#9959)David Else2024-03-21
|
* C++: Improve parameter highlightingMichael Davis2024-03-21
| | | | | | | | | | | | | This adds parameter highlighting for reference parameters and defaulted parameters. For example: ```cpp auto strip_prefix_only(std::string& s, Hidden_Homonym skip_hidden_homonym = {}) const -> Affixing_Result<Prefix>; ``` Previously both parameters were only highlighted as variables.
* Rust: Highlight extern crate aliasesMichael Davis2024-03-21
| | | | For example `extern crate alloc as myalloc;`
* Update tree-sitter-gleam and highlightsMichael Davis2024-03-21
| | | | | This contains a few syntax fixes. The highlights have been updated as well for reserved identifiers and escape sequences
* Update tree-sitter-erlang and highlightsMichael Davis2024-03-21
| | | | | | | | | | | | | | | | | | A few changes: * 0-arity type specs like the following previously would not have the expected 'variable.parameter' highlighting for the return type: -spec foo() -> Value when Value :: term(). * Highlight module, type and function docs as documentation comments and inject markdown into them. * Replace `#match?` predicates with `#any-of?` where possible. * Remove custom auto-pairs. Now that Erlang uses markdown for documentation, the asciidoc-style backtick-singlequote pair is no longer useful.
* Recognize 'mmd' as mermaidMichael Davis2024-03-21
|
* Update tree-sitter-git-commitMichael Davis2024-03-21
| | | | This commit has partial support for escapes within strings.
* Create a tutor entry for using splits (#9417)JR2024-03-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * WIP * WIP * WIP * Fix typos * Fix typos * Minor updates * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Remove mention of arrows in split tutorial * Do not mention starting in normal mode * Fix right drift of titles * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Update runtime/tutor Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> * Reflow paragraphs * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/tutor Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: David Else <12832280+David-Else@users.noreply.github.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update rasmus.toml (#9939)Jordan Reger2024-03-21
| | | | | | | * Update rasmus.toml Remove "ui.virtual" setting as it selects seemingly random characters to highlight. * Add ui.virtual.ruler
* Evenly space statusline areas when there isn't space to align middle (#9950)Michael Davis2024-03-21
| | | | | | | | | | | The refactor in bcf7b263 introduced a possible subtraction with overflow when the statusline is layed out so that the left or right sides are larger than the padding it would take to align the center area to the middle. When the left or right areas are too large, we can evenly space the elements rather than trying to align the center area to the middle. This prevents possible underflows and makes sense visually - it's still easy to tell the areas apart at a glance.
* Add new theme keys for LSP diagnostic tags for dark_plus (#9949)David Else2024-03-20
|
* fix(languages): specify correct comment-token for PKGBUILD files (#9943)Hendrik Norkowski2024-03-20
|
* Refactor statusline elements to build `Spans` (#9122)Szabin2024-03-19
| | | | | * Refactor statusline elements to return Spans * Split render fn to build Spans and blit to Surface
* Add support for ember.js templates (#9902)Arthur Deierlein2024-03-19
| | | | | | | | | | | | | | | | | * feat: add support for ember .hbs (glimmer) templates * adjust highlights to helix * highlight this correctly in block statements * correctly highlight attributes * correctly highlight hash_pair * add newline to highlights.scm * refactor: use #any-of and #eq instead of #match * chore: add newline to languages.toml
* add register completion (#9936)Kirawi2024-03-19
|
* Ignore more version control systems (#9935)Tobias Hunger2024-03-19
| | | | Ignore `.pijul` and `.jj` as well as `.git`. This makes hx so much more usable with VCSes other than git!
* feat: add suport for helm charts (#9900)Arthur Deierlein2024-03-19
|
* Prevent `shell_keep_pipe` from stopping on nonzero exit status code (#9817)Cyrill Schenkel2024-03-19
| | | | | | | | | | | | The `shell_impl` and `shell_impl_async` functions no longer return `success` because it was always `true`. If the command didn't succeed both functions would return an `Err`. This was also the reason, why `shell_keep_pipe` didn't work. It relied upon the value of `success` and aborted in case of an `Err`. It now removes any selection for which `shell_impl` returns `Err`. If the command always fails, the selections are preserved and an error message is displayed in the status bar.
* Initial Ada language support (after stale) (#9908)Damian Zaręba2024-03-19
| | | | | | | | | | | | | * Adding initial support for ada language, based off #7790 PR from tomekw * More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP * Generate ada in lang-support.md using cargo xtask docgen * Update tree-sitter definitions according to comments * Remove .gpr glob from languages.toml * Fix unit in languages.toml for ada, update locals.scm to helix needs
* Enhance support for PKGBUILDS (#9909)Arthur Deierlein2024-03-19
| | | | | * enhance support for PKGBUILDS * run cargo xtask docgen
* Do not stop reloading docs on error (#9870)Luis Useche2024-03-19
| | | | | | | | | | In the `reload-all` command, we should not stop reloading the documents if one error is found. Instead, we should report the error and continue trying to reload the current open documents. This is useful in cases where a backing file does not exist temporarily (e.g. when editing a git patch in the outstanding chain that doesn't have a file just yet). This change also remove the error messages in the cases where the backing is `None`, like in new docs or `tutor`.
* Respect undercurl config even with no terminfo (#9897)Khang Nguyen Duy2024-03-19
| | | | | | | | | | | | | | I have just found out that my recent Windows Terminal version supported rendering undercurl (see https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-20-release ). However, looking at the source, terminfo is required for helix to emit the undercurl control code, which isn't available on Windows AFAIK. This commit make helix respects the `editor.undercurl` option when there is no terminfo. Tested on Windows Terminal Preview 1.20 Signed-off-by: Khang Nguyen <khang.nguyenduycse@hcmut.edu.vn>
* build(deps): bump the rust-dependencies group with 3 updates (#9929)dependabot[bot]2024-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps the rust-dependencies group with 3 updates: [bitflags](https://github.com/bitflags/bitflags), [toml](https://github.com/toml-rs/toml) and [lsp-types](https://github.com/gluon-lang/lsp-types). Updates `bitflags` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/2.4.2...2.5.0) Updates `toml` from 0.8.10 to 0.8.12 - [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.10...toml-v0.8.12) Updates `lsp-types` from 0.95.0 to 0.95.1 - [Changelog](https://github.com/gluon-lang/lsp-types/blob/master/CHANGELOG.md) - [Commits](https://github.com/gluon-lang/lsp-types/compare/v0.95.0...v0.95.1) --- updated-dependencies: - dependency-name: bitflags dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: toml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: lsp-types dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Optimize get_truncated_pathmo8it2024-03-19
|
* Optimize getting a relative pathmo8it2024-03-19
|
* Optimize fold_home_dirmo8it2024-03-19
|
* Call as_ref only oncemo8it2024-03-19
|