dependabot[bot]
7f44a6ad50
build(deps): bump once_cell from 1.18.0 to 1.19.0 ( #9053 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
dependabot[bot]
3e249829ee
build(deps): bump libc from 0.2.150 to 0.2.151 ( #9056 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
TornaxO7
b81aacc5e1
Join empty lines with only one space in `join_selections` ( #8989 )
...
* fix : #8977
fixes the issue that lines with only spaces are getting
joined as well
* reverting some renamings
* improve empty line check
* adding integration test
* reverting code block
* fix conditon check for line end
* applying suggested style
1 year ago
dependabot[bot]
4c2bd4905e
build(deps): bump open from 5.0.0 to 5.0.1 ( #8992 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Skyler Hawthorne
bf7c4e1659
use workspace inheritance for common version ( #8925 )
1 year ago
dependabot[bot]
8532cec01c
build(deps): bump grep-searcher from 0.1.12 to 0.1.13 ( #8998 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
79965a238d
build(deps): bump url from 2.4.1 to 2.5.0 ( #8991 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
0d9145a1bf
build(deps): bump grep-regex from 0.1.11 to 0.1.12 ( #8930 )
...
Bumps [grep-regex](https://github.com/BurntSushi/ripgrep ) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases )
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/ripgrep/compare/grep-regex-0.1.11...0.1.12 )
---
updated-dependencies:
- dependency-name: grep-regex
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>
1 year ago
Hendrik Norkowski
b023faacf8
fix(ui): use crossterm cursor when at the end of the rope ( #8934 )
1 year ago
dependabot[bot]
008208fcfb
build(deps): bump grep-searcher from 0.1.11 to 0.1.12 ( #8929 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Hendrik Norkowski
71fd85894b
use crossterm cursor in editor when out of focus ( #6858 )
...
Use crossterm cursor in the editor when the terminal is out of focus to achieve consistent out-of-focus cursor behaviour
1 year ago
Fomalhaut Weisszwerg
b7f98d1d99
set Cargo feature resolver to v2 ( #8917 )
...
* fix: version of Cargo feature resolver.
This commit solve the ambiguity to determin the version of resolver.
To get more detail, see the following two documents:
- https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
- https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html
* unified: Rust edition in all workspaces.
Now, the Rust 2021 is available in all workspaces.
* fined up: Cargo.toml by using workspace inheritance.
To get more detail of the `workspace.package` table, see a following document:
- https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table
1 year ago
Davide Ferrero
3f9788daaa
update which crate to 5.0.0 ( #8902 )
...
* update which crate to 5.0.0
* update which crate to 5.0.0
1 year ago
chtenb
8c68074fa6
Fix precedence of ui.virtual.whitespace ( #8879 )
...
* Revert "Revert "Fix precedence of ui.virtual.whitespace (#8750 )""
This reverts commit 811d62d3b3
.
* Fix ui.text overwriting the syntax highlighting
Adjust ui.text description
1 year ago
Cole Helbling
8b0ae3d279
bump MSRV to 1.70.0 ( #8877 )
...
* rust-toolchain.toml: bump MSRV to 1.70.0
With Firefox 120 released on 21 November 2023, the MSRV is now 1.70.0.
* Fix cargo fmt with Rust 1.70.0
* Fix cargo clippy with Rust 1.70.0
* Fix cargo doc with Rust 1.70.0
* rust-toolchain.toml: add clippy component
* .github: bump dtolnay/rust-toolchain to 1.70
* helix-term: bump rust-version to 1.70
* helix-view/gutter: use checked_ilog10 to count digits
* helix-core/syntax: use MAIN_SEPARATOR_STR constant
* helix-view/handlers/dap: use Display impl for displaying process spawn error
* WIP: helix-term/commands: use checked math to assert ranges cannot overlap
1 year ago
Blaž Hrastnik
811d62d3b3
Revert "Fix precedence of ui.virtual.whitespace ( #8750 )"
...
This reverts commit 41b307b673
.
1 year ago
chtenb
41b307b673
Fix precedence of ui.virtual.whitespace ( #8750 )
1 year ago
Bjorn Ove Hay Andersen
47b6c4bc78
Resolve args.files before changing directory ( #8676 )
...
* Resolve args.files before changing directory
* Removed the open_cwd work-around now that the path is full
* If -w is specified, use that as the working directory
* Open the remaining files in the argument list, also when the first is a directory
* Use an iterator access the files argument
1 year ago
Matouš Dzivjak
3052050ee0
open urls with goto_file command ( #5820 )
...
* feat(commands): open urls with goto_file command
Add capability for `goto_file` command to open an URL under cursor.
Fixes: https://github.com/helix-editor/helix/issues/1472
Superseds: https://github.com/helix-editor/helix/pull/4398
* open files inside helix
* address code review
* bump deps
* fix based on code review comments
1 year ago
Ryan Mehri
6bf5548dbd
make increment/decrement exit select mode
1 year ago
Ryan Mehri
09c78e8b4e
make switch case commands exit select mode
1 year ago
Ryan Mehri
d4a0eba1a7
make align exit select mode
1 year ago
Ryan Mehri
5913073733
make replace with clipboard commands exit select mode
1 year ago
Ryan Mehri
1271a50a82
make paste commands exit select mode
1 year ago
Ryan Mehri
34de1cab62
make indent/unindent exit select mode
1 year ago
dependabot[bot]
aac7bd9b08
build(deps): bump libc from 0.2.149 to 0.2.150 ( #8741 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Yomain
e868678139
Add command to move files with LSP support ( #8584 )
...
* Added rename command
* Added an error if the new path already exists
* Fixed wrong command name being used
* fixed clippy suggestions
* removed didRenameFiles call, fixed early return due to path Err
* added ':rnm' alias to ':rename'
* code cleanup
* formatting
* removed debug line
* cargo fmt
* Improved new buffer error message
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Removed unnecessary path normalizing
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Update helix-term/src/commands/typed.rs
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Update helix-term/src/commands/typed.rs
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Update helix-term/src/commands/typed.rs
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* Update helix-term/src/commands/typed.rs
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
* feat: change `rename` command to `move`
* feat: add multi lsp support when moving files
* feat: allow lsp calls with a custom timeout
* feat: sending lsp file_changed event once file has moved
---------
Co-authored-by: ontley <theontley@gmail.com>
Co-authored-by: ontley <67148677+ontley@users.noreply.github.com>
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
1 year ago
Skyler Hawthorne
10b178e94b
swap yank command registers ( #8708 )
...
#8703 swapped the `+` and `*` registers, but did not swap them in the
corresponding yank commands.
1 year ago
dependabot[bot]
53bb62b318
build(deps): bump tempfile from 3.8.0 to 3.8.1 ( #8672 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
mattwparas
0b5501d175
clean up
1 year ago
Ryan Mehri
d0430f1c81
Only render preview if picker has a preview function ( #8667 )
1 year ago
Paul Olteanu
8d44459c6a
Add helix-specific ignore files ( #8099 )
1 year ago
Bjorn Ove Hay Andersen
e6d2835b09
Fixed issue when the first file specified as an argument was a relative directory ( #8520 )
1 year ago
Yomain
cd591647ec
fix(lsp): ensure we only highlight diagnostics for lsp with the feature enabled ( #8551 )
1 year ago
Lorenzo Bellina
d9d7f67898
Add support for showing all LSPs in --health ( #7315 )
...
* Add support for showing all LSPs in --health <lang>
* Add support for showing all LSPs in --health languages
* Use available/configured in --health languages
* Apply @AlexanderBrevig suggestion in --health
* Update `--health <language>`
Better output (inspired by #8156 ).
Handle the case where no LSPs are configured.
* Display all LSPs in `--health languages` instead of x/x
Displays all LSPs as a list in the table generated wih `--health languages`
* Make check_binary accept Optional references to str
Avoids some calls to .clone()
* Apply @the-mikedavis suggestions
* Avoid useless collecting and cloning
* Use for loop instead of .try_for_each()
1 year ago
Bjorn Ove Hay Andersen
07a006d1d5
Add +N CLI argument to jump to first file's line number ( #8521 )
...
* Accept +num flag for opening at line number
* Update +N argument feature according to feedback in original PR #5603
* Only override the line number of the first file if +N is specified
---------
Co-authored-by: Nachum Barcohen <38861757+nabaco@users.noreply.github.com>
1 year ago
dependabot[bot]
1852292451
build(deps): bump libc from 0.2.148 to 0.2.149 ( #8503 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Bjorn Ove Hay Andersen
a857480561
Set the working directory before loading the config ( #8498 )
1 year ago
mattwparas
4550faf50f
fix build issues
1 year ago
mattwparas
fbabc40930
merge with event system
1 year ago
mattwparas
cc65e583f4
checkpoint before event system
1 year ago
Lloyd Bond
75c0a5ceb3
enable starting hx with a working directory ( #8223 )
...
* added working path arg to cli and help menu
* improve working path cli arg handling
* enable hx to set the working path
* applied cargo formatting
* improved code from cargo clippy suggestion
* improved code from follow up review
* fix for -w <path> is set but args.files is empty
* improved formatting of --help output
1 year ago
mattwparas
30dba6a6de
add one more keybinding
1 year ago
mattwparas
575046cacf
merge from master
1 year ago
mattwparas
c0fdbc1148
start theme api
1 year ago
Pascal Kuthe
dbfa2a63fa
refactor completion and signature help using hooks
1 year ago
mattwparas
76de40c1ed
have some comments on the global search
1 year ago
mattwparas
0b107d6f41
deprecate old keybinding scheme
1 year ago
Michael Davis
01e281ce10
markdown: Recognize `<code>` tags with attributes as code ( #8397 )
1 year ago
A-Walrus
f520b16fca
Style Bold/Italic/Strikethrough markdown in docs ( #8385 )
...
* Style Bold/Italic/Strikthrough markdown in docs
* Flatten to single match
1 year ago
mattwparas
baa753176a
add more functions for document and editor api
1 year ago
dependabot[bot]
312c175aec
build(deps): bump indoc from 2.0.3 to 2.0.4 ( #8329 )
...
Bumps [indoc](https://github.com/dtolnay/indoc ) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/2.0.3...2.0.4 )
---
updated-dependencies:
- dependency-name: indoc
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>
1 year ago
dependabot[bot]
53500f6ebd
build(deps): bump libc from 0.2.147 to 0.2.148 ( #8327 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.147 to 0.2.148.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.148 )
---
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>
1 year ago
mattwparas
6a9d0b3c64
reverse keymap overlay
1 year ago
mattwparas
db3e9ed31d
Merge remote-tracking branch 'origin' into mwp-steel-integration
1 year ago
mattwparas
500963b1c5
clean up warnings
1 year ago
mattwparas
2d4bc31d54
reorganize top level to use precedence for multiple plugins
1 year ago
Pascal Kuthe
13d4463e41
correctly center items in picker preview
1 year ago
Pascal Kuthe
e9d0bd7aef
fix crash in picker preview for invalid ranges
1 year ago
Em Zhan
7090555dab
Add `insert-final-newline` config option ( #8157 )
...
Co-authored-by: Xalfer <64538944+Xalfer@users.noreply.github.com>
1 year ago
Pascal Kuthe
15f88ad7bf
Add hook/event system
1 year ago
Luke Halasy
b959162ceb
Add tree-sitter-highlight-name command ( #8170 )
...
* adds treesitter-highlight-name command
* commit documentation changes
* moves the get_highlight_name function into core/syntax
* rename get_highlight_name function to get_highlight_for_node_at_position
* addresses pr comments: moves fn into helper fn, simplifies a lot
* commit updated documentation changes
* changes scope method to return &str so that callers can decide whether or not to own
1 year ago
Pascal Kuthe
eb9c37844c
fix syntax highlights in dynamic picker ( #8206 )
1 year ago
Weiyuan Wu
8017bb2999
add redraw command ( #6949 )
...
Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
1 year ago
Michael Davis
c0fd8bc61b
Fix Clone definition for Injector ( #8194 )
1 year ago
Pascal Kuthe
e6cdc5f9d3
Don't use word splitting during fuzzy matching ( #8192 )
1 year ago
Pascal Kuthe
0cfd46c14f
Do not show (running) when opening picker ( #8148 )
...
* only stream from background thread if necessary
If the file transversal is longer shorter 30ms it will now be performed
on the main thread. Spawning a thread can take a while (or rather it
takes a while until that thread is scheduled) so the files can actually
take a while to show up. This prevents the `(running)` indicator from
briefly showing up when opening the file picker in a small directory.
* run partial cargo update
1 year ago
Lorenzo Bellina
e8fc77fe98
Maintain the current cursor's position and view in the vsplit/hsplit commands too ( #8109 )
...
Co-authored-by: Benjamin Bouvier <public@benj.me>
1 year ago
woojiq
bb3e6998e6
Fix find commands for buffers with non-LF line-endings ( #8111 )
1 year ago
Pascal Kuthe
a38ec6d6ca
avoid excessive memory consumption in picker ( #8127 )
...
* avoid excessive memory consumption from file picker
* fix typos
Co-authored-by: Chris <75008413+cd-a@users.noreply.github.com>
---------
Co-authored-by: Chris <75008413+cd-a@users.noreply.github.com>
1 year ago
Michael Davis
48373d4a2b
Clear completion when switching windows via click ( #8118 )
...
The completion component assumes that it operates on the same View but
it's possible to break this assumption by switching windows through
left-clicking. I believe we should clear the completion menu when
switching windows to fix this.
This change fixes a panic for this scenario:
* Open a buffer with LSP completion available
* Split the window (for example '<C-w>v')
* Enter insert mode and trigger the completion menu
* Select a completion candidate (for example with '<C-n>')
* Switch to the original window by left-clicking in its area
* Enter insert mode and make edits (for example 'o<backspace>')
This will trip the 'assert_eq' in Document::restore.
1 year ago
Pascal Kuthe
0cb595e226
transition to nucleo for fuzzy matching ( #7814 )
...
* transition to nucleo for fuzzy matching
* drop flakey test case
since the picker streams in results now any test that relies
on the picker containing results is potentially flakely
* use crates.io version of nucleo
* Fix typo in commands.rs
Co-authored-by: Skyler Hawthorne <skyler@dead10ck.com>
---------
Co-authored-by: Skyler Hawthorne <skyler@dead10ck.com>
1 year ago
mattwparas
cb93a68595
fix borrow mut error
1 year ago
woojiq
b67d2c3a68
fix: line numbers remain relative when helix loses focus ( #7955 )
...
* fix: line numbers remain relative when helix loses focus
If `line number = relative` and a new window is opened in helix, lines inside unfocused windows will be `absolute`. This commit adds the same thing when helix becomes unfocused in a terminal emulator.
* partial rebase
1 year ago
mattwparas
0eb0be55a3
slim down interfact even more
1 year ago
mattwparas
7d63468b83
cleanup
1 year ago
mattwparas
18fa67d157
more clean up
1 year ago
mattwparas
69302c26ab
some extra comments
1 year ago
mattwparas
279f5eddb3
add feature flag
1 year ago
mattwparas
81243247c6
nuke the dlopen stuff
1 year ago
mattwparas
ecfce4cd06
clean up
1 year ago
mattwparas
7da809a780
fix borrow mut errors
1 year ago
mattwparas
67a5266da3
engine shouldn't panic when helix.scm file fails to load
1 year ago
mattwparas
5fbc086ccd
add back missing command
1 year ago
mattwparas
fe4d6ceb40
fix formatting
1 year ago
mattwparas
42c9997487
merge in master
1 year ago
mattwparas
a73e212a7c
fixes
1 year ago
Michael Davis
546c8ca344
Handle switch from crossterm::Result to io::Result
1 year ago
Michael Davis
e8fef6b6fc
Bump crossterm to 0.27 in helix-term on macos
1 year ago
dependabot[bot]
c3442f3a18
build(deps): bump crossterm from 0.26.1 to 0.27.0
...
Bumps [crossterm](https://github.com/crossterm-rs/crossterm ) from 0.26.1 to 0.27.0.
- [Release notes](https://github.com/crossterm-rs/crossterm/releases )
- [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossterm-rs/crossterm/compare/0.26.1...0.27.0 )
---
updated-dependencies:
- dependency-name: crossterm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
10f75ac67a
build(deps): bump tempfile from 3.7.1 to 3.8.0 ( #8038 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.1 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.1...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
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>
1 year ago
mattwparas
20d7d6a426
update instructions
1 year ago
Pascal Kuthe
e5f8d8ef04
create separate timer for redraw requests ( #8023 )
...
* create separate timer for redraw requests
* Update helix-view/src/editor.rs
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
---------
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
1 year ago
Mike
0cc94cd87a
goto_file_impl: use relative path to open file ( #7965 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
1 year ago
nkitsaini
22f4f313f1
Remove unnecessary `Err` from `get_canonicalized_path` ( #8009 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
1 year ago
nkitsaini
2767459f89
Remove path completions for `:new` command ( #8010 )
1 year ago
mattwparas
72aa2d9520
indenting full in steel now
1 year ago
mattwparas
d0d9f7b5b0
more integration, not pretty but still making progress
1 year ago
Andrés Cabero
090a225f28
goto_file: open picker if a directory is selected ( #7909 )
...
* feat: open file picker on directories using goto_file (gf)
* remove helper and call to canonicalize
1 year ago
Jonathan LEI
3a162e2bef
Make editor remember the latest search register ( #5244 )
1 year ago