srothgan
56f531a73f
chore: migrate to Rust 2024 edition and bump to v0.9.2 ( #12 )
...
* chore: migrate to Rust 2024 edition and bump to v0.9.2
- Bump edition to 2024 and rust-version to 1.85.0
- Replace f64::log10 with usize::ilog10 in num_digits
- Fix clippy lints surfaced by edition bump: repeat_n, derived Default, then_some
- Expand watch-check and watch-test aliases to cover all feature paths (crossterm_0_28, no-backend, tuirs variants, serde, arbitrary)
- Expand CI test and clippy workflows to full 6/8-entry feature matrices including termion on Ubuntu
- Apply rustfmt import reordering from edition 2024 rules
* fix: revert turis linux checks
2026-02-20 03:38:50 +10:00
srothgan
1740facd24
feat: add unicode-aware soft-wrap modes and wrapped rendering ( #8 )
...
* feat(textarea): add unicode-aware soft-wrap modes and wrapped rendering
- add WrapMode API/state: None, Word, Glyph, WordOrGlyph
- keep None behavior unchanged (horizontal scroll)
- implement wrapped render path with logical-to-visual row mapping
- add Unicode-aware wrapping via unicode-segmentation + unicode-width
- make wrap width tab-aware to prevent hidden text
- apply cursor-line style on wrapped continuation rows
- fix selection at soft-wrap boundaries (no synthetic highlighted space)
- add wrap-focused tests for long text, newlines, tabs, tiny widths, and line-number
continuations
* chore(release): bump to v0.9.0 and update README/CHANGELOG
2026-02-19 03:26:48 +10:00
srothgan
43afdc5ce1
chore/integrate-open-prs ( #5 )
...
* docs: integrate upstream PR #116
* feat: integrate upstream PR #113
* chore: add portable-atomic for viewport atomics (upstream PR #111 )
* fix(examples): integrate upstream PR #100
* fix(word): integrate upstream PR #98
* fix(widget): handle wide unicode char widths in horizontal scroll (upstream PR #94 )
* feat(highlight): integrate upstream PR #93
* chore(release): prepare v0.8.0 docs and CI-clean merged upstream updates
* docs(license): rename LICENSE.txt to LICENSE and fix header capitalization
2026-02-18 23:34:50 +10:00
srothgan
4689076df5
chore: ratatui 0.30 maintenance + collaboration baseline ( #1 )
2026-02-18 11:46:03 +01:00
rhysd
bae9d4cee3
refactor undo/redo implementation
2023-11-13 19:29:43 +09:00
rhysd
cb868a19b6
add sanity test for all combination of key inputs
2023-11-13 00:19:17 +09:00
rhysd
a54ce36d22
refactor text selection and add more tests ( fix #6 )
2023-11-12 18:22:17 +09:00
pm100
5a2649abe9
implement select ( #45 )
...
* select, second go using new multiline code
* implemented internal delete_str, added tests
* delete_str_internal must not put non deleted strings into history. Ie ctrlc should not change history
* delete_str was taking lines out in the non delete case
* corrected comment
* fixes after feedback. Plus multichar bugs. change modal sample
2023-11-10 21:10:04 +09:00
rhysd
efdfc13445
simplify unit tests for DisplayTextBuilder
2023-11-04 19:48:28 +09:00
rhysd
2e6697e54a
perfer for to while
2023-11-04 19:36:33 +09:00
rhysd
25bfdbc42b
refactor building display text and add tests where start offset is not zero
2023-11-04 19:29:54 +09:00
rhysd
37d42cd545
fix start offset of line text is always zero when calculating tab width
2023-11-04 19:29:49 +09:00
rhysd
70f7b95874
simplify ratatui/tui-rs feature groups by adding ratatui and tuirs features
2023-10-24 16:24:58 +09:00
rhysd
42c76a9d45
rename your-backend features to no-backend
2023-10-24 16:02:43 +09:00
rhysd
ef3b3188f4
invert ratatui-* features with tuirs-*
2023-10-24 13:15:16 +09:00
rhysd
784ad655dc
pass mask character on creating LineHighlighter instance
2023-10-21 13:38:17 +09:00
rhysd
892b4495d3
support termwiz crate for ratatui
2023-10-21 01:44:06 +09:00
rhysd
68275e4932
consider wide chars on calculating tab width
2023-10-21 00:30:36 +09:00
rhysd
e05ffff9e2
refactor making display line text and tests for it
2023-10-20 20:52:16 +09:00
pm100
64ca882128
fix hard tab display ( #33 )
...
* fix hard tab display
* fix clippy complaint
* fix tab_len == 0 case. Add tests
* oops commited wrong file.
2023-10-20 10:47:58 +09:00
paul moore
45445e0554
change 'password' to more generic 'mask'. Fix tab behavior
2023-10-15 09:55:16 -07:00
paul moore
84985fa04c
password - second go
2023-10-13 17:37:37 -07:00
rhysd
37054892a2
fix deprecation warnings by ratatui
2023-10-01 20:37:38 +09:00
rhysd
dbe03202a8
add ratatui crate support
2023-04-13 21:51:27 +09:00
rhysd
44bf996941
separate implementation for highlighting to src/highlight.rs
2022-07-11 03:06:43 +09:00