aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* don't move cursor while forward deleting in append modePascal Kuthe2023-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, when forward deleting (`delete_char_forward` bound to `del`, `delete_word_forward`, `kill_to_line_end`) the cursor is moved to the left in append mode (or generally when the cursor is at the end of the selection). For example in a document `|abc|def` (|indicates selection) if enter append mode the cursor is moved to `c` and the selection becomes: `|abcd|ef`. When deleting forward (`del`) `d` is deleted. The expectation would be that the selection doesn't shrink so that `del` again deletes `e` and then `f`. This would look as follows: `|abcd|ef` `|abce|f` `|abcf|` `|abc |` This is inline with how other editors like kakoune work. However, helix currently moves the selection backwards leading to the following behavior: `|abcd|ef` `|abc|ef` `|ab|ef` `ef` This means that `delete_char_forward` essentially acts like `delete_char_backward` after deleting the first character in append mode. To fix the problem the cursor must be moved to the right while deleting forward (first fix in this commit). Furthermore, when the EOF char is reached a newline char must be inserted (just like when entering appendmode) to prevent the cursor from moving to the right
* cleanup delete_by_selection_insert_mode functionPascal Kuthe2023-05-18
|
* fix panic when deleting overlapping rangesPascal Kuthe2023-05-18
| | | | | | | | | | | | | Some deletion operations (especially those that use indentation) can generate overlapping deletion ranges when using multiple cursors. To fix that problem a new `Transaction::delete` and `Transaction:delete_by_selection` function were added. These functions merge overlapping deletion ranges instead of generating an invalid transaction. This merging of changes is only possible for deletions and not for other changes and therefore require its own function. The function has been used in all commands that currently delete text by using `Transaction::change_by_selection`.
* clarify comments about completion savepointsPascal Kuthe2023-05-18
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* only resolve completion items oncePascal Kuthe2023-05-18
|
* deduplicate savepointsPascal Kuthe2023-05-18
|
* ensure correct trigger/start completion offsetPascal Kuthe2023-05-18
| | | | | | | When re requesting a completion that already has a selected item we reuse that selections savepoint. However, the selection has likely changed since that savepoint which requires us to use the selection from that savepoint
* resolve completions before applying transactionsPascal Kuthe2023-05-18
|
* correctly handle completion rerequestPascal Kuthe2023-05-18
|
* Update nightfox theme (#7061)Jan Scheer2023-05-18
| | | | | | | | | | | * theme: nightfox - fix subselection highlighting This fixes an issue with subselect highlighting on the same line as reported here: https://github.com/helix-editor/helix/discussions/5158 * theme: nightfox - update bufferline colors This uses `ui.bufferline` to make it easier to distinguish between (in-)active tabs/buffers.
* languages.toml: recognize `gml` files. (#7055)gibbz002023-05-16
|
* languages.toml: recognize `geojson` files. (#7054)gibbz002023-05-16
|
* build(deps): bump serde from 1.0.162 to 1.0.163 (#7056)dependabot[bot]2023-05-16
| | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.162 to 1.0.163. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163) --- updated-dependencies: - dependency-name: serde 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 tokio from 1.28.0 to 1.28.1 (#7057)dependabot[bot]2023-05-16
| | | | | | | | | | | | | | | Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.0 to 1.28.1. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.0...tokio-1.28.1) --- updated-dependencies: - dependency-name: tokio 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>
* Replace DAP vars popup, instead of adding new (#7034)A-Walrus2023-05-13
|
* Add comment injections for Odin (#7027)lefp2023-05-12
|
* fix: update upstream tree-sitter-dockerfile (#6895)Vitalii Solodilov2023-05-12
| | | | | | | | | * fix: update upstream tree-sitter-dockerfile Fixes: #6797 * fix: review * fix: review
* Fix warnings from clippy (#7013)ZJPzjp2023-05-11
| | | | | * Fix warnings from clippy * revert MAIN_SEPARATOR_STR
* nix: Update flake dependenciesBlaž Hrastnik2023-05-11
|
* Add better error message for file save failure due to parent not existing ↵John Kelly2023-05-10
| | | | | (#7014) Fixes #5229
* Add wbc and wbc! commands (#6947)Kitsu2023-05-09
|
* Remove `tree-sitter-cabal` (#6996)Ollie Charles2023-05-09
|
* Add Flathub as third party repository (#6994)David Else2023-05-09
|
* build(deps): bump serde from 1.0.160 to 1.0.162 (#7002)dependabot[bot]2023-05-09
| | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.160 to 1.0.162. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162) --- updated-dependencies: - dependency-name: serde 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 libc from 0.2.142 to 0.2.144 (#7000)dependabot[bot]2023-05-09
| | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.142 to 0.2.144. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.144) --- updated-dependencies: - dependency-name: libc 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 termini from 0.1.4 to 1.0.0 (#7001)dependabot[bot]2023-05-09
| | | | | | | | | | | | | | | Bumps [termini](https://github.com/pascalkuthe/termini) from 0.1.4 to 1.0.0. - [Release notes](https://github.com/pascalkuthe/termini/releases) - [Commits](https://github.com/pascalkuthe/termini/compare/v0.1.4...v1.0.0) --- updated-dependencies: - dependency-name: termini dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update dracula menu colors (#6987)Chirikumbrah2023-05-08
|
* Treat .sty and .cls files as latex (#6986)Andrius Pukšta2023-05-08
|
* Fix keymap select / extend mode anchor link (#6974)Dave Powers2023-05-05
|
* languages: add build.gradle.kts to java and scala roots (#6970)Diego Pontoriero2023-05-05
| | | | | Gradle scripts written in kotlin use a .kts extension: https://docs.gradle.org/current/userguide/kotlin_dsl.html#sec:scripts
* Add Amberwood theme (#6924)Gagan Janjua2023-05-03
|
* Add language server command for Crystal (#6948)taupiqueur2023-05-03
|
* build(deps): bump tokio from 1.27.0 to 1.28.0 (#6935)dependabot[bot]2023-05-02
| | | | | | | | | | | | | | | Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.27.0 to 1.28.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.27.0...tokio-1.28.0) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump tokio-stream from 0.1.12 to 0.1.14 (#6934)dependabot[bot]2023-05-02
| | | | | | | | | | | | | | | | Bumps [tokio-stream](https://github.com/tokio-rs/tokio) from 0.1.12 to 0.1.14. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Changelog](https://github.com/tokio-rs/tokio/blob/tokio-0.1.14/CHANGELOG.md) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.12...tokio-0.1.14) --- updated-dependencies: - dependency-name: tokio-stream 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 gix from 0.44.0 to 0.44.1 (#6933)dependabot[bot]2023-05-02
| | | | | | | | | | | | | | | | Bumps [gix](https://github.com/Byron/gitoxide) from 0.44.0 to 0.44.1. - [Release notes](https://github.com/Byron/gitoxide/releases) - [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md) - [Commits](https://github.com/Byron/gitoxide/compare/gix-v0.44.0...gix-v0.44.1) --- updated-dependencies: - dependency-name: gix 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 anyhow from 1.0.70 to 1.0.71 (#6932)dependabot[bot]2023-05-02
| | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.71. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71) --- 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>
* build(deps): bump etcetera from 0.7.1 to 0.8.0 (#6931)dependabot[bot]2023-05-02
| | | | | | | | | | | | | | | Bumps [etcetera](https://github.com/lunacookies/etcetera) from 0.7.1 to 0.8.0. - [Release notes](https://github.com/lunacookies/etcetera/releases) - [Commits](https://github.com/lunacookies/etcetera/compare/v0.7.1...v0.8.0) --- updated-dependencies: - dependency-name: etcetera dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Dracula theme: change variable and menu colors (#6855)Chirikumbrah2023-05-01
|
* Recognise Jupyter notebooks as JSON documents (#6927)Scott Stevenson2023-05-01
|
* Recognise poetry.lock as TOML (#6928)Scott Stevenson2023-05-01
|
* fix didChange notifaction offset encodingPascal Kuthe2023-05-01
|
* Conserve BOM and properly support UTF16 (#6497)Alexis-Lapierre2023-04-30
|
* tutor: Delete space between shorthand (#6920)Rafael Madriz2023-04-30
|
* tutor: Trim trailing white space (#6919)Rafael Madriz2023-04-30
|
* Update docs for `move_visual_line_*` (#6918)sscheele2023-04-30
|
* downgrade gix log level to info (#6915)Pascal Kuthe2023-04-30
|
* [Theme - noctis] Change color for whitespace rendering and indent guides0rphee2023-04-30
|
* [Theme - noctis] Refine multiple cursor highlighting0rphee2023-04-30
| | | Improve clarity when using multiple cursors
* Sort the buffer picker by most recent access (#2980)Evgeniy Tatarkin2023-04-28
|
* inject language based on file extension & shebang (#3970)Timothy DeHerrera2023-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * inject language based on file extension Nodes can now be captured with "injection.filename". If this capture contains a valid file extension known to Helix, then the content will be highlighted as that language. * inject language by shebang Nodes can now be captured with "injection.shebang". If this capture contains a valid shebang line known to Helix, then the content will be highlighted as the language the shebang calls for. * add documentation for language injection * nix: fix highlights The `@` is now highlighted properly on either side of the function arg. Also, extending the phases with `buildPhase = prev.buildPhase + ''''` is now highlighted properly. Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump) Fix `inherit` highlighting. * simplify injection_for_match Split out injection pair logic into its own method to make the overall flow easier to follow. Also transform the top-level function into a method on a HighlightConfiguration. * markdown: add shebang injection query