aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Avoid unnecessary clone when formatting error (#1903)jeepee2022-04-01
| | | | Instead of first cloning the query and then allocating again to format the error, format the error using a reference to the query.
* Fix start-position of next search (#1904)jeepee2022-04-01
| | | | | | | | | The search implementation would start searching at the next grapheme boundary after the previous selection. In case the next occurence of the needle is immediately after the current selection, this occurence would not be found (without wraparound) because the first grapheme is skipped. The correct approach is to use the ensure_grapheme_boundary functions instead of using the functions that skip unconditionally to the next grapheme.
* Jump to the next number on the line before incrementing (#1778)antoyo2022-04-01
| | | | | | | * Jump to the next number on the line before incrementing Partially fix #1645 * Refactor to avoid duplicating find_nth_next
* jsx: Add special highlighting to component namesBlaž Hrastnik2022-04-01
|
* Add JSX highlighting queriesBlaž Hrastnik2022-04-01
|
* Add support for jsx (#1906)Amine Hmida2022-04-01
| | | | | * Add support for javascriptreact language * Add support for jsx files
* Reintroduce win32yank as a clipboard provider on Linux for WSL2 + Windows 10 ↵جاد2022-04-01
| | | | | | | | | (#1912) * feat(clipboard): reintroduce win32yank for wsl2 linux * refactor(clipboard): adjust win32yank position to not interrupt wayland/x11 Co-authored-by: jiqb <gthbji@ml1.net>
* Fix an issue that caused an empty indentation query to be used instead of ↵Triton1712022-04-01
| | | | | using the fallback method of copying the indentation from the current line. (#1908) Co-authored-by: Triton171 <triton0171@gmail.com>
* lsp: Implement support for workspace_folders (currently just one)Blaž Hrastnik2022-04-01
| | | | Refs #1898
* fix: copy_selections was broken with selections (not cursors)Blaž Hrastnik2022-04-01
|
* Add install instructions for Void Linux (#1911)Marcin Puc2022-03-31
|
* fix: Some LSPs still want rootPath, so provide itBlaž Hrastnik2022-03-31
| | | | Refs #1898
* Resolve conflicts between prompt/picker bindings (#1792)Rohan Jain2022-03-31
| | | | | | | | | | | | | | Currently, the picker's re-using a few bindings which are also present in the prompt. This causes some editing behaviours to not function on the picker. **Ctrl + k** and **Ctrl + j** This should kill till the end of the line on prompt, but is overridden by the picker for scrolling. Since there are redundancies (`Ctrl + p`, `Ctrl + n`), we can remove it from picker. **Ctrl + f** and **Ctrl + b** This are used by the prompt for back/forward movement. We could modify it to be Ctrl + d and Ctrl + u, to match the `vim` behaviour.
* set VERSION file to dev (#1883)Michael Davis2022-03-31
| | | | | * set VERSION file to dev * bump to 22.05-dev
* Add a TODO for the futureBlaž Hrastnik2022-03-31
|
* fix: copy_selection needs to account for to() being exclusiveBlaž Hrastnik2022-03-31
| | | | | Fixes #1367 Fixes #1590
* Use fromTOML on Nix >= 2.6.0 (#1892)Max2022-03-30
|
* Indentation rework (#1562)Triton1712022-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: Rework indentation system * Add ComplexNode for context-aware indentation (including a proof of concept for assignment statements in rust) * Add switch statements to Go indents.toml (fixes the second half of issue #1523) Remove commented-out code * Migrate all existing indentation queries. Add more options to ComplexNode and use them to improve C/C++ indentation. * Add comments & replace Option<Vec<_>> with Vec<_> * Add more detailed documentation for tree-sitter indentation * Improve code style in indent.rs * Use tree-sitter queries for indentation instead of TOML config. Migrate existing indent queries. * Add documentation for the new indent queries. Change xtask docgen to look for indents.scm instead of indents.toml * Improve code style in indent.rs. Fix an issue with the rust indent query. * Move indentation test sources to separate files. Add `#not-kind-eq?`, `#same-line?` and `#not-same-line` custom predicates. Improve the rust and c indent queries. * Fix indent test. Improve rust indent queries. * Move indentation tests to integration test folder. * Improve code style in indent.rs. Reuse tree-sitter cursors for indentation queries. * Migrate HCL indent query * Replace custom loading in indent tests with a designated languages.toml * Update indent query file name for --health command. * Fix single-space formatting in indent queries. * Add explanation for unwrapping. Co-authored-by: Triton171 <triton0171@gmail.com>
* fix: Don't rely on FormattingOptions::default()Blaž Hrastnik2022-03-30
| | | | Refs #1884
* Handle BrokenPipe when piping hx --health through head (#1876)Nirmal Patel2022-03-30
| | | Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
* add tree-sitter-gleamMichael Davis2022-03-30
|
* update tree-sitter-elixirMichael Davis2022-03-30
| | | | | | | | | | | | | | | | | | news: - tree-sitter-elixir now powers Elixir syntax highlighting on github.com - GitHub now supports code-navigation for Elixir repos via tree-sitter-elixir changes: - modules now use the `@module` highlight, which was added upstream to tree-sitter - it seems appropriate to use `@namespace` to follow helix convention - added nullary range operator (e.g. `Enum.to_list(..) == []`), a new syntax for elixir 1.14 - a fix for stab clause nodes mis-highlighting when the right hand side of the stab clause contained multiple simple expressions
* update tree-sitter-erlangMichael Davis2022-03-30
| | | | | | | | | changes: - typed fields within records which do not declare a default value are now correctly highlighted as record fields - the EEP49 'maybe' form is now parsed - fixes for highlights for 'begin' and 'after' tokens
* Avoid using the format ident Rust feature (#1881)Marcin Puc2022-03-30
|
* update screenshot (#1879)Michael Davis2022-03-29
|
* changelog notes for 22.03 (#1830)Michael Davis2022-03-29
|
* Revert "Resize is not necessary inside SIGCONT, handled by render()"Blaž Hrastnik2022-03-29
| | | | | | Fixes #1877 This reverts commit 85264a861aeda7a002dda548403258620e914b57.
* publish a source tarball with version and grammars (#1875)Michael Davis2022-03-29
| | | | | | | | | * publish a source tarball with version and grammars * include_str! the release version from a VERSION file * remove setting of .version file from tag don't need this anymore since the file is checked into source
* build(deps): bump log from 0.4.14 to 0.4.16 (#1874)dependabot[bot]2022-03-29
| | | | | | | | | | | | | | | | | Bumps [log](https://github.com/rust-lang/log) from 0.4.14 to 0.4.16. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/commits) --- updated-dependencies: - dependency-name: log 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>
* build(deps): bump smartstring from 1.0.0 to 1.0.1 (#1873)dependabot[bot]2022-03-29
| | | | | | | | | | | | | | | | | Bumps [smartstring](https://github.com/bodil/smartstring) from 1.0.0 to 1.0.1. - [Release notes](https://github.com/bodil/smartstring/releases) - [Changelog](https://github.com/bodil/smartstring/blob/master/CHANGELOG.md) - [Commits](https://github.com/bodil/smartstring/compare/v1.0.0...v1.0.1) --- updated-dependencies: - dependency-name: smartstring 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>
* grammars.nix: use github type for fetchTree where possible (#1872)Max2022-03-28
|
* clipboard: fix import on macOSBlaž Hrastnik2022-03-28
|
* cargo fmtBlaž Hrastnik2022-03-28
|
* Address clippy lintBlaž Hrastnik2022-03-28
|
* Refactor clipboard to make it easier to feature gate std::processBlaž Hrastnik2022-03-28
|
* Make truncate_start a builder method insteadBlaž Hrastnik2022-03-28
|
* Strip some more paramsBlaž Hrastnik2022-03-28
|
* Clean up global searchBlaž Hrastnik2022-03-28
|
* Make line a private propertyBlaž Hrastnik2022-03-28
|
* Remove more push_layer callsBlaž Hrastnik2022-03-28
|
* Make regex_prompt directly call cx.push_layerBlaž Hrastnik2022-03-28
|
* This doesn't need to be mutBlaž Hrastnik2022-03-28
|
* Split off dap event handlers into helix-view to allow reuseBlaž Hrastnik2022-03-28
|
* Resize is not necessary inside SIGCONT, handled by render()Blaž Hrastnik2022-03-28
|
* Move top level lsp config to editor.lsp (#1868)Gokul Soumya2022-03-28
| | | | | | | | | | | * Move top level lsp config to editor.lsp This is mainly done to accomodate the new lsp.signature-help config option that will be introduced in https://github.com/helix-editor/helix/pull/1755 which will have to be accessed by commands. The top level config struct is split and moved to different places, making the relocation necessary * Revert rebase slipup
* Add refresh-config and open-config command (#1803)Joe2022-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add refresh-config and open-config command * clippy * Use dynamic dispatch for editor config * Refactor Result::Ok to Ok * Remove unused import * cargo fmt * Modify config error handling * cargo xtask docgen * impl display for ConfigLoadError * cargo fmt * Put keymaps behind dyn access, refactor config.load() * Update command names * Update helix-term/src/application.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Switch to unbounded_channel * Remove --edit-config command * Update configuration docs * Revert "Put keymaps behind dyn access", too hard This reverts commit 06bad8cf492b9331d0a2d1e9242f3ad4e2c1cf79. * Add refresh for keys * Refactor default_keymaps, fix config default, add test * swap -> store, remove unneeded clone * cargo fmt * Rename default_keymaps to default Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Revise the color for ui.cursor.match (#1862)Narazaki Shuji2022-03-25
| | | | | | - bogster.toml - solarized_dark.toml - solarized_light.toml - spacebones_light.toml
* Fix Rescript hightlights query (#1863)Jared Ramirez2022-03-23
|
* Handle RPC returning an invalid callBlaž Hrastnik2022-03-23
|
* Add syntax highlighting for Solidity (#1854)Slin Lee2022-03-22
|