Blaž Hrastnik
13126823f8
lsp: Support insertReplace
...
Fixes #4473
2022-11-08 20:50:49 +09:00
Danillo Melo
188aff059b
Improve Ruby TextObjects ( #4601 )
2022-11-07 19:43:00 -06:00
dependabot[bot]
535cf90093
build(deps): bump regex from 1.6.0 to 1.7.0 ( #4640 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [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.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
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>
2022-11-07 18:07:21 -06:00
dependabot[bot]
5bfe84fb4f
build(deps): bump libloading from 0.7.3 to 0.7.4 ( #4639 )
...
Bumps [libloading](https://github.com/nagisa/rust_libloading ) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/nagisa/rust_libloading/releases )
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.7.3...0.7.4 )
---
updated-dependencies:
- dependency-name: libloading
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>
2022-11-07 18:06:05 -06:00
Tobias Kohlbau
6cafd81e41
tutor: fix wording in recap for chapter 5 ( #4629 )
...
In recap for chapter 5.1 specify that the cursor is duplicted to the next suitable line
instead of the next line.
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2022-11-07 07:53:29 -06:00
Ryan Palmer
da8f29eaa7
Fixed disorienting selection palette on Gruvbox theme ( #4626 )
...
Co-authored-by: ryan.palmer <ryan.palmer@servicenow.com>
2022-11-07 07:32:40 -06:00
Jonathan LEI
eddf9f0b7f
Run clippy on workspace in CI ( #4614 )
2022-11-07 13:39:18 +09:00
Michael Davis
140df92d79
Fix command-mode completion behavior when input is escaped
...
If `a\ b.txt` were a local file, `:o a\ <tab>` would fill the prompt
with `:o aa\ b.txt` because the replacement range was calculated using
the shellwords-parsed part. Escaping the part before calculating its
length fixes this edge-case.
2022-11-07 13:38:16 +09:00
Michael Davis
3d283b2ca4
Escape filenames in command completion
...
This changes the completion items to be rendered with shellword
escaping, so a file `a b.txt` is rendered as `a\ b.txt` which matches
how it should be inputted.
2022-11-07 13:38:16 +09:00
Michael Davis
1536a65289
Fix whitespace handling in command-mode completion
...
8584b38cfb
switched to shellwords for
completion in command-mode. This changes the conditions for choosing
whether to complete the command or use the command's completer.
This change processes the input as shellwords up-front and uses
shellword logic about whitespace to determine whether the command
or argument should be completed.
2022-11-07 13:38:16 +09:00
Michael Davis
48a3965ab4
Fix range offsets in multi-selection paste ( #4608 )
...
* Fix range offsets in multi-selection paste
d6323b7cbc
introduced a regression with
multi-selection paste where pasting would not adjust the ranges
correctly. To fix it, we need to track the total number of characters
inserted in each changed selection and use that offset to slide each
new range forwards.
* Inherit selection directions on paste
* Add an integration-test for multi-selection pasting
2022-11-06 23:56:45 +09:00
ChrHorn
4ec2a21c6e
Update Julia grammar, queries ( #4588 )
2022-11-05 13:30:40 -05:00
Michael Davis
3814987298
Fix panic on paste from blackhole register ( #4497 )
...
The sequence "_y"_p panics because the blackhole register contains an
empty values vec. This causes a panic when pasting since it unwraps
a `slice::last`.
2022-11-05 01:04:16 +09:00
Michael Davis
d6323b7cbc
Select text inserted by shell or paste ( #4458 )
...
This follows changes in Kakoune to the same effects:
* p/<space>p: 266d1c37d0
* !/<A-!>: 85b78dda2e
Selecting the new data inserted by shell or pasting is often more
useful than retaining a selection of the pre-paste/insert content.
2022-11-05 01:02:19 +09:00
Blaž Hrastnik
9a898be959
nix: Bump flake dependencies
2022-11-04 21:06:28 +09:00
Blaž Hrastnik
c2c1280f02
Resolve a bunch of upcoming clippy lints
2022-11-04 21:06:28 +09:00
Antoine Stevan
921d351013
bump up LhKipp/tree-sitter-nu's version to latest ( #4583 )
2022-11-03 21:20:14 -05:00
throwaway-helix-zsh
d357f1673f
Use language=bash when shebang line uses zsh ( #4582 )
...
This PR makes the editor use language=bash when the shebang line uses
zsh. This is in the same line as using language=bash for zsh related
file (~/.zshrc, ~/.zshenv etc.) as we already do.
2022-11-03 21:18:24 -05:00
ChrHorn
c667ff8da3
Increase default language server timeout for Julia ( #4575 )
2022-11-03 21:17:06 -05:00
Michael Davis
ba394dca6d
Fix panic from two windows editing the same document ( #4570 )
...
* Clamp highlighting range to be within document
This fixes a panic possible when two vsplits of the same document
exist and enough lines are deleted from the document so that one of
the windows focuses past the end of the document.
* Ensure cursor is in view on window change
If two windows are editing the same document, one may delete enough of
the document so that the other window is pointing at a blank page (past
the document end). In this change we ensure that the cursor is within
view whenever we switch to a new window (for example with `<C-w>w`).
* Update helix-term/src/ui/editor.rs
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2022-11-03 15:09:21 +09:00
Charlie Groves
1bed2f3043
Use OSC 52 as a fallback for setting the system clipboard ( #3220 )
...
This adds a simple base64 implementation to keep us from adding a crate for one function. It's
mostly based on
a675443d32/src/engine/naive.rs (L42)
2022-11-02 10:12:40 +09:00
Yuriy
b156f57618
Add indentation for Python pattern matching
...
Add indentation for `match` and `case`.
2022-11-01 20:10:11 -05:00
Yuriy
e0b034dcd1
Add syntax highlighting for Python pattern matching
...
Add syntax highlighting for `match` and `case` keywords in Python
(https://peps.python.org/pep-0636/ ).
2022-11-01 20:10:11 -05:00
Jonathan LEI
db3383c76e
Exit select mode on replace commands ( #4554 )
2022-11-01 20:08:25 -05:00
Garrett D'Amore
185236c3a4
Fix D unittest injection query. ( #4562 )
2022-11-01 19:44:56 -05:00
Yuriy Gabuev
c803ef8753
Fix delete_char_backward
for paired characters ( #4558 )
...
When backward-deleting a character, if this character and the following
character form a Pair, we want to delete both. However, there is a bug
that deletes both characters also if both characters are closers of some
Pair.
This commit fixes that by adding an additional check that the deleted
character should be an opener in a Pair.
Closes https://github.com/helix-editor/helix/issues/4544 .
2022-11-01 23:48:43 +09:00
Poliorcetics
8ff92c7492
Add missed test attribute in #4316 ( #4557 )
2022-11-01 21:37:19 +09:00
Armin Ronacher
8584b38cfb
Correctly handle escaping in completion ( #4316 )
...
* Correctly handle escaping in completion
* Added escaping tests
2022-11-01 20:48:37 +09:00
Yusuf Bera Ertan
3881fef39d
build(nix): update nci, fixup flake ( #4537 )
2022-10-31 19:52:03 -05:00
dependabot[bot]
e5319ea8c5
build(deps): bump once_cell from 1.15.0 to 1.16.0 ( #4548 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 19:31:08 -05:00
Jonas Everaert
79c7203a38
Added missing keywords to wat (wasm) hightlights ( #4542 )
...
added "if", "then", "else", "block", "loop", "end" and "mut" to the wat highlights.
2022-10-31 19:30:08 -05:00
dependabot[bot]
3792d9ebb7
build(deps): bump lsp-types from 0.93.1 to 0.93.2 ( #4550 )
...
Bumps [lsp-types](https://github.com/gluon-lang/lsp-types ) from 0.93.1 to 0.93.2.
- [Release notes](https://github.com/gluon-lang/lsp-types/releases )
- [Changelog](https://github.com/gluon-lang/lsp-types/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gluon-lang/lsp-types/compare/v0.93.1...v0.93.2 )
---
updated-dependencies:
- dependency-name: lsp-types
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 19:29:32 -05:00
dependabot[bot]
92b13f9e71
build(deps): bump cc from 1.0.73 to 1.0.74 ( #4549 )
...
Bumps [cc](https://github.com/rust-lang/cc-rs ) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.73...1.0.74 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 19:29:01 -05:00
Sebastian Hoß
9b247b1104
Update SSH client config grammar & highlight queries ( #4538 )
...
Co-authored-by: Sebastian Hoß <seb@hoß.de>
2022-10-31 19:27:53 -05:00
seshotake
ed7ea8c9ba
add highlights for env and ini file formats ( #4536 )
2022-10-31 19:23:09 -05:00
hh9527
9df4358492
Support WIT grammar ( #4525 )
2022-10-31 18:48:01 -05:00
dependabot[bot]
df3c6412ac
build(deps): bump cachix/cachix-action from 11 to 12 ( #4547 )
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 11 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v11...v12 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 18:21:51 -05:00
Konstantin Podsvirov
f41f28b662
Update windows install instructions ( #4530 )
2022-10-30 11:55:31 -05:00
seshotake
f6710879d1
Update SQL grammar ( #4529 )
2022-10-30 11:54:37 -05:00
Triton171
908529ccac
Update LaTex grammar ( #4528 )
...
Fix comment injection & add highlighting for math delimiters.
2022-10-30 11:45:58 -05:00
Matthew Toohey
00cf12f571
fix: make scroll
aware of tabs and wide characters ( #4519 )
2022-10-29 16:23:18 -05:00
Matthew Toohey
f054a3f3ed
feat(lang): add xml ( #4518 )
2022-10-29 15:41:28 -05:00
Poliorcetics
2935e9da19
feat: Categorize Rust's keywords using more specific scopes ( #4510 )
2022-10-29 10:36:26 -05:00
Kristoffer Flottorp
e3eaad1479
Fleetish: Adjustments to resemble official theme and reworked diagnostics to reduce subconjunctival hemorrhage ( #4487 )
2022-10-29 10:35:35 -05:00
Jaden
b5e7501935
feat(lang): add kdl grammar ( #4481 )
2022-10-29 10:33:23 -05:00
Matthias Deiml
5e256e4a98
Make shell_impl concurrent ( #3180 )
2022-10-29 10:24:33 -05:00
Poliorcetics
c58e1729ce
fix: Never create automatic doc popups outside of Insert mode ( #4456 )
2022-10-28 18:20:55 -05:00
rsteube
26f21da531
language: added vhs ( #4486 )
2022-10-28 08:22:41 -05:00
Michael Davis
cefdface3b
Include colons for typable commands in command palette ( #4495 )
...
Before:
Goto next buffer. [buffer-next]
After:
Goto next buffer. [:buffer-next]
2022-10-28 21:42:40 +09:00
Dario Oddenino
6752c7d347
Trim quotes and braces from paths in goto_file_impl ( #4370 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2022-10-27 20:31:28 -05:00