aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/position.rs
Commit message (Collapse)AuthorAge
* feat: make `move_vertically` aware of tabs and wide characters (#2620)Matthew Toohey2022-06-21
| | | | | | | | | | | | | * feat: make `move_vertically` aware of tabs and wide characters * refactor: replace unnecessary checked_sub with comparison * refactor: leave pos_at_coords unchanged and introduce separate pos_at_visual_coords * style: include comment to explain `pos_at_visual_coords` breaking condition * refactor: use `pos_at_visual_coords` in `text_pos_at_screen_coords` * feat: make `copy_selection_on_line` aware of wide characters
* Fix tab rendering to use dynamic tab widthBlaž Hrastnik2022-03-04
| | | | | | Each tab is just wide enough to round to the nearest tab stop. Refs #1243
* Reuse visual_coords_at_pos function in viewBlaž Hrastnik2022-03-04
|
* Allow specifying file start position (#445)Ivan Tham2022-01-23
| | | Like helix-term/src/commands.rs:3426:15
* Ensure coords in screen depends on char width (#885)Ivan Tham2021-11-03
| | | | | The issue affected files with lots of tabs at the start as well. Fix #840
* Document `pos_at_coords` better.Nathan Vegdahl2021-08-09
| | | | | Particularly the effect of the `limit_before_line_ending` parameter.
* Revert display-width-based vertical cursor movement.Nathan Vegdahl2021-07-22
| | | | Still needs to be done, but should be part of a separate PR.
* Fixes for misc bugs with view movement.Nathan Vegdahl2021-07-21
|
* Make vertical selection movement work properly.Nathan Vegdahl2021-07-06
|
* Fix all remaining warnings in helix-core except for two.Nathan Vegdahl2021-07-02
| | | | | I'm not sure how to address them, because they look like they might be bugs, and code is involved. Will poke the relevant people.
* Remove #[allow(unused)] from helix-core, and fix unused imports.Nathan Vegdahl2021-07-02
| | | | Still a bunch more warnings to fix in core, but it's a start.
* Work on moving code over to LineEnding instead of assuming '\n'.Nathan Vegdahl2021-06-20
| | | | Also some general cleanup and some minor fixes along the way.
* clippy lintBlaž Hrastnik2021-03-24
|
* Move things out of state.rs.Blaž Hrastnik2021-03-18
|
* nix: include rust-src so rust-analyzer works correctly.Blaž Hrastnik2021-01-19
|
* Incremental parsing: rough draft.Blaž Hrastnik2020-09-17
|
* Implement a new core based on CodeMirror.Blaž Hrastnik2020-05-25
|
* Initial import.Blaž Hrastnik2020-05-20