Miguel Madrid-Mencía
d2d3024337
Fix clippy 1.67 warnings ( #5697 )
2 years ago
kristopherbullinger
7483c76222
update `x_offset` calculation in Buffer::set_string_truncated ( #3839 )
...
when `truncate_start` is `true`, the `x_offset` is now properly updated
according to the width of the content or the truncated length.
2 years ago
Blaž Hrastnik
c2c1280f02
Resolve a bunch of upcoming clippy lints
2 years ago
A-Walrus
c4d7cde6c8
Allow the area to be bigger than u16 (width and height remain u16) ( #4318 )
...
Now the editor can fill **very** large terminals.
Changed/removed tests which check the truncating behaviour.
2 years ago
Pascal Kuthe
71ee589bbc
make underline_style a seperate option
...
Underline styles are mutally exclusive and overwrite each other.
Therefore implementing as an modifier lead to incorrect behaviour
when the underline style is overwritten.
For backwards compatability the "underline" modified is retained (but
deprecated). Instead the "underline_style" and "underline_color"
optios should be used to style underlines.
2 years ago
A-Walrus
79a39c1063
Fix failing tests
...
Add underline field to doctests, and fix bugs
2 years ago
A-Walrus
3ad7d543ca
Add separate color for underlines
2 years ago
chunghha
3a398eec56
fix typos ( #2304 )
3 years ago
Ludwig Stecher
59c691d2db
Highlight matching text in file picker suggestions ( #1635 )
...
* Highlight matching text in file picker suggestions
* Remove cache, specialize highlighting code
* Fix outdated comments
3 years ago
Blaž Hrastnik
ac81b47a41
Don't calculate symbol width twice
...
This is potentially costly so we should avoid calling width()
3 years ago
Mathis Brossier
f5b0821860
Fix panics when resizing ( #1408 )
...
* Change buffer.get & buffer.get_mut to return Option, Implement Trait Index & IndexMut to panic
* Prevent FilePicker from drawing outside buffer (rust panics)
* apply suggestion
* add function in_bounds to avoid useless calculations
Co-authored-by: mathis <mathis.brossier@universite-paris-saclay.fr>
3 years ago
Blaž Hrastnik
34f46e7502
Bump rust to 1.57, fix new lint failures
3 years ago
Omnikar
5b5d1b9dff
Truncate the starts of file paths instead of the ends in picker ( #951 )
...
* Truncate the starts of file paths in picker
* Simplify the truncate implementation
* Break loop at appropriate point
* Fix alignment and ellipsis presence
* Remove extraneous usage of `x_offset`
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
3 years ago
Ivan Tham
9effe71b7d
Apply suggestions from blaz for infobox
3 years ago
Ivan Tham
ed1a745442
Trait width method use refactor
3 years ago
Gokul Soumya
e8d2f3612f
Use unicode_width to correctly truncate picker chars
3 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>
3 years ago
Gokul Soumya
18beda38ac
Add … when chars are truncated in picker
3 years ago
Blaž Hrastnik
4f108ab1b2
Fix tests failing on cargo test --release
3 years ago
Blaž Hrastnik
ff4c1d05de
Replace the Clear widget with buffer.clear/clear_with.
4 years ago
Blaž Hrastnik
35606a3daa
Inline tui as helix-tui fork.
...
We only rely on some of the rendering primitives and implement our
Cursive-style compositor on top.
4 years ago