aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/buffer.rs
Commit message (Collapse)AuthorAge
* update `x_offset` calculation in Buffer::set_string_truncated (#3839)kristopherbullinger2022-11-17
| | | | when `truncate_start` is `true`, the `x_offset` is now properly updated according to the width of the content or the truncated length.
* Resolve a bunch of upcoming clippy lintsBlaž Hrastnik2022-11-04
|
* Allow the area to be bigger than u16 (width and height remain u16) (#4318)A-Walrus2022-10-26
| | | | Now the editor can fill **very** large terminals. Changed/removed tests which check the truncating behaviour.
* make underline_style a seperate optionPascal Kuthe2022-10-01
| | | | | | | | | | 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.
* Fix failing testsA-Walrus2022-10-01
| | | | Add underline field to doctests, and fix bugs
* Add separate color for underlinesA-Walrus2022-10-01
|
* fix typos (#2304)chunghha2022-04-27
|
* Highlight matching text in file picker suggestions (#1635)Ludwig Stecher2022-03-01
| | | | | | | * Highlight matching text in file picker suggestions * Remove cache, specialize highlighting code * Fix outdated comments
* Don't calculate symbol width twiceBlaž Hrastnik2022-01-23
| | | | This is potentially costly so we should avoid calling width()
* Fix panics when resizing (#1408)Mathis Brossier2022-01-16
| | | | | | | | | | | * 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>
* Bump rust to 1.57, fix new lint failuresBlaž Hrastnik2021-12-03
|
* Truncate the starts of file paths instead of the ends in picker (#951)Omnikar2021-11-04
| | | | | | | | | | | | | * 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>
* Apply suggestions from blaz for infoboxIvan Tham2021-07-04
|
* Trait width method use refactorIvan Tham2021-06-26
|
* Use unicode_width to correctly truncate picker charsGokul Soumya2021-06-25
|
* reverse the dependency between helix-tui and helix-view (#366)Keith Simmons2021-06-25
| | | | | | | | | * 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>
* Add … when chars are truncated in pickerGokul Soumya2021-06-25
|
* Fix tests failing on cargo test --releaseBlaž Hrastnik2021-06-20
|
* Replace the Clear widget with buffer.clear/clear_with.Blaž Hrastnik2021-05-09
|
* Inline tui as helix-tui fork.Blaž Hrastnik2021-05-09
We only rely on some of the rendering primitives and implement our Cursive-style compositor on top.