Commit Graph

3174 Commits (c00b8f7ad70e69d5365dc4d1247a8d47b53a8d2e)
 

Author SHA1 Message Date
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
Nathan Vegdahl 481c4ba044 Increment char_index by grapheme char count.
It was just assuming single-char graphemes before.
4 years ago
Nathan Vegdahl 0cbaa998ce Fix flipped condition where Helix adds a line ending on open. 4 years ago
Nathan Vegdahl 38bf9c2576 Missed some items in the CRLF PR. 4 years ago
Blaž Hrastnik 9c53461429 fix: Select matching at the start of the doc could crash. Fixes #346 4 years ago
Blaž Hrastnik 7511110d82 Fix build on master 4 years ago
Joe Neeman fd1ae35051 Make the prompt callback take a Context. 4 years ago
Lionel Flandrin 16883e7543 Implement show_current_directory command 4 years ago
Lionel Flandrin b56174d738 Implement change_current_directory command 4 years ago
Blaž Hrastnik 866b32b5d7 Add repology.org packaging status 4 years ago
Blaž Hrastnik 39d59216e4
Fix link to good first issue 4 years ago
Blaž Hrastnik 20f33ead67 minor: Remove old TODOs 4 years ago
Gokul Soumya e0fd08d6df Rename surround to match_mode 4 years ago