Blaž Hrastnik
c832aa5a49
There is no direct dirs-next dependency in term
4 years ago
Blaž Hrastnik
f9cdb2afe2
Turn diagnostics rendering into span injection too
4 years ago
Blaž Hrastnik
90d675fb15
Fix AnyComponent test
4 years ago
Blaž Hrastnik
cac6e1b282
nix: Set up cargo-tarpaulin
4 years ago
Blaž Hrastnik
057bd630d8
Simplify selection rendering by injecting highlight scopes
4 years ago
Blaž Hrastnik
44566ea812
Release 0.3.0
4 years ago
Blaž Hrastnik
cad14c6b46
Address nightly clippy warnings
4 years ago
Ivan Tham
ed1a745442
Trait width method use refactor
4 years ago
Nathan Vegdahl
a6cadddef4
Fix silly mistake in previous phantom line bug fix.
...
Fixes #381 . I was trying to change an index value that... wasn't
even an index value.
4 years ago
Nathan Vegdahl
2dba228c76
Fix highlight code splitting graphemes.
...
This resulted in phantom blank lines in files with CRLF line
endings, but could potentially have manifested with other
graphemes as well.
4 years ago
Wojciech Kępka
eb6fb63e74
Sort files in file picker by access, modification and creation date ( #336 )
...
* Sort files in file picker by access date
* Fallback file time to modified then created then UNIX_EPOCH
* Use `sort_by_key`
* Refactor
4 years ago
Nathan Vegdahl
d534d6470f
Detect file language before file indent style.
...
Fixes #378 . The issue was that because indent style detection
ran before language detection, there was no language indent
style to fall back on if indent style detection failed, so it
would just default to 2 spaces.
4 years ago
Gokul Soumya
e8d2f3612f
Use unicode_width to correctly truncate picker chars
4 years ago
teenjuna
c688288881
Move helix-view/tests/*txt files to txts subdirectory ( #372 )
...
* Move helix-view/tests/*txt files to txts subdirectory
* Rename tests/txts to tests/encoding
4 years ago
Blaž Hrastnik
f2d8ce3415
Use a deadline when eagerly processing notifications
4 years ago
Blaž Hrastnik
503ca112ae
fix: jumping to location did not convert the URI correctly
...
thus breaking Windows
4 years ago
Blaž Hrastnik
8e277ad8ba
fix: crossterm -> input key conversion
4 years ago
Keith Simmons
4418e17547
reverse the dependency between helix-tui and helix-view ( #366 )
...
* reverse the dependency between helix-tui and helix-view by moving a fiew types to view
* fix tests
* clippy and format fixes
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
4 years ago
Ivan Tham
74cc4b4a49
Add default color for cursor match ( #370 )
...
* Add default color for cursor match
Not all terminals support dim, for those terminal that does not support
this (konsole, item2, wezterm), users cannot differentiate between match
and primary cursor. So set a color for this.
* Use alacritty dim color for match
4 years ago
Ivan Tham
c2b937481f
Fix goto line end
...
Should not goto newline.
4 years ago
Gokul Soumya
18beda38ac
Add … when chars are truncated in picker
4 years ago
Ivan Tham
10548bf0e3
Fix previous broken refactor key into helix-view
...
Need to be used for autoinfo
Revert "Revert "Refactor key into helix-view""
This reverts commit 10f9f72232
.
4 years ago
Kirawi
15ae2e7ef1
Update helix-term/src/commands.rs
...
Co-authored-by: Ivan Tham <pickfire@riseup.net>
4 years ago
Kirawi
7ae21b98ce
Update helix-term/src/commands.rs
...
Co-authored-by: Ivan Tham <pickfire@riseup.net>
4 years ago
Shafkath Shuhan
629df6124d
Blocking :wq
4 years ago
Nathan Vegdahl
8935e7a879
Fix open-new-line command for CRLF, as well as other bugs.
...
Fixes #363 .
I set out to fix issue #363 , but after fixing it discovered some
other things were wrong with the command while testing. In
summary:
- #363 was because it was still assuming a line ending width
of 1 char in its indexing calculations, even when actually
inserting CRLF.
- Aside from #363 , it actually needed to set `line_end_index`
to zero for *all* calculations that use it when line == 0,
but it was only doing so for a single calculation.
4 years ago
Gokul Soumya
394629ab73
Skip enclosed pairs in surround
...
Surround operations previously ignored other pairs that are
enclosed within which should be skipped. For example if the
cursor is on the `,` in `{{a},{b}}`, doing `md{` previously
would delete the `{` on the left of `a` and `}` on the right
of `b` instead of the outermost braces. This commit corrects
this behavior.
4 years ago
Gokul Soumya
fb8e7dc25b
Fix picker item width overflow
...
Fixes #352
4 years ago
Alex Ryapolov
2924522aea
Remove duplicate properties from theme.toml
4 years ago
Benoît CORTIER
14f61fb6ac
Fix lsp config deserialization case
...
It should have been in kebab-case, but it was the default snake_case.
4 years ago
Nathan Vegdahl
9cbf564d08
Handle erroneously ignored case in RopeGraphemes iterator.
4 years ago
Blaž Hrastnik
7f6265ecf3
fix: crash with ctrl-c on empty file
4 years ago
Blaž Hrastnik
0f55e67576
fix: ok, needs to be the end of the previous line
4 years ago
Blaž Hrastnik
7366fe81e0
open: Use the correct function
...
Still not correct but at least it doesn't append at EOF
4 years ago
Blaž Hrastnik
4ad7b61c69
fix: Better fix that also fixes crashes on `o`
4 years ago
Blaž Hrastnik
655c1aeb73
fix: panic on O at the start of the file ( fixes #354 )
4 years ago
Blaž Hrastnik
ea8cd4765d
Adjust default theme colors (insert/extend cursor)
4 years ago
Blaž Hrastnik
39dc09e6c4
ui: Paginate prompt completion
4 years ago
wojciechkepka
3606d8bd24
Patch the primary cursor with insert and select styles
4 years ago
wojciechkepka
c534fdefdc
Refactor, add `ui.cursor.primary`
4 years ago
wojciechkepka
d70be55f70
Add ability to theme primary selecition
4 years ago
wojciechkepka
ac1e98d088
Add ability to theme cursor
4 years ago
wojciechkepka
f09ccbc891
Update docs
4 years ago
wojciechkepka
ed6528b9a6
fix: Docs, `select_line` -> `extend_line`
4 years ago
Shafkath Shuhan
6564257a7b
add missing doc
4 years ago
nobody
7896eefd73
add tests
4 years ago
Shafkath Shuhan
fd98e743e8
Handle non-UTF8 files
4 years ago
Blaž Hrastnik
9706f1121d
Fix small screen panics
4 years ago
Nathan Vegdahl
2ff9b362fb
Update to Ropey v1.3.1 with needed bugfix.
4 years ago
Nathan Vegdahl
848cc1b438
Fix extend_line() behavior.
...
It would always extend to the next line if the cursor was at the
end of the current line, even if the current line wasn't fully
selected yet.
4 years ago