| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
* Fix warnings from clippy
* revert MAIN_SEPARATOR_STR
|
|
|
|
|
|
|
|
|
|
| |
the previous implementation used set_string_truncated. This is not only
awkward with this kind of "streaming" string (and therefore lead to an
inefficient and incorrect initial implementation) but that function also
truncates strings of width 1 when there is only a single char available.
The implementation here is performant, correct and also handles the
single width case correctly.
|
| |
|
| |
|
|
|
|
| |
when `truncate_start` is `true`, the `x_offset` is now properly updated
according to the width of the content or the truncated length.
|
| |
|
|
|
|
| |
Now the editor can fill **very** large terminals.
Changed/removed tests which check the truncating behaviour.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Add underline field to doctests, and fix bugs
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Highlight matching text in file picker suggestions
* Remove cache, specialize highlighting code
* Fix outdated comments
|
|
|
|
| |
This is potentially costly so we should avoid calling width()
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
| |
|
| |
|
|
We only rely on some of the rendering primitives and implement our
Cursive-style compositor on top.
|