Oliver
c76f7879f5
Added GetWrappedLineCount to TextView. Resolves #1028
2024-11-03 18:47:30 +01:00
DevHegemony
9d79348686
fixing #959 textview mouse out of bounds fix
2024-03-28 20:08:59 -04:00
Oliver
9c17885289
No mouse scrolling when scrolling is turned off.
2024-03-07 18:21:37 +01:00
Oliver
e4a85fc779
Mouse scrolling to the end turns tracking on. Resolves #945
2024-03-07 18:14:13 +01:00
Oliver
d179351a0a
Fixed panic when Highlight is called before the first call to Draw.
2024-02-01 20:14:08 +01:00
Oliver
7568c3f71c
Fixed disappearing highlights. Fixes #941
2024-01-20 10:50:12 +01:00
Oliver
742cf08619
Handled a case where there could be highglights for non-existing regions.
2024-01-18 10:39:11 +01:00
Oliver
d3aebefdd2
Ignoring unknown regions when highlighting. Fixes #939
2024-01-18 09:59:32 +01:00
Oliver
9360b0f727
Fixed the text view's maximum line offset. Fixes #907
2023-11-02 19:25:00 +01:00
Kian-Meng Ang
5d85e6a030
Fix typos
...
Found via `codespell -H -S .git -L rightt,wth,bu`
2023-11-02 13:24:14 +08:00
Oliver
d7e1e3802f
Checking line index before attempting purge. Fixes #891
2023-09-28 07:31:30 +02:00
Oliver
15a8a86787
Default is word-wrapping.
2023-09-07 10:24:44 +02:00
Oliver
e3c3ad5029
Handling trailing newline characters directly in step parser. Fixes #882
2023-09-07 07:56:28 +02:00
Oliver
7344139b55
Finished new parser implementation.
2023-08-26 16:19:31 +02:00
Oliver
caea67a4ef
Implemented string parser and migrated all widgets but TextView.
2023-08-22 23:16:59 +03:00
Oliver
47b3275db4
Form elements can now also be disabled. Resolves #192
2023-03-20 07:26:01 +01:00
Oliver
19d943d595
Some clarifications.
2022-12-12 16:08:47 +01:00
Oliver
55d1ca9d33
Added own implementation of SetBackgroundColor() to TextView, to keep backwards compatibility. Fixes #777
2022-12-11 17:09:34 +01:00
Oliver
e6cd7110ac
Spelling and wording.
2022-12-11 00:56:52 +01:00
Oliver
3f246bda86
Text views can also become part of forms.
2022-12-11 00:46:02 +01:00
Oliver
55965cf21d
Replaced mattn/go-runewidth string width calculation with rivo/uniseg for improved character display.
2022-09-11 21:02:40 +02:00
rivo
941f8605ec
Merge pull request #753 from sruehl/fix/textview_color_panic
...
fix: fixed GetRegionText when colors are active, fixes #751
2022-09-06 17:11:08 +02:00
Sebastian Rühl
ac98385e86
fix: fixed GetRegionText when colors are active
...
When skipping color tags the currentTag is getting incremented and directly after that a index access with that happens. This always crashes on the last tag.
2022-09-05 14:37:09 +02:00
Oliver
cecb44578c
Setting focus is now based on a "mouse down" event instead of a "click" event.
2022-09-02 17:49:12 +02:00
Oliver
ac1f564949
Implemented basic text area printing.
2022-07-30 15:59:31 +01:00
Oliver
6537221da8
Merge conflict resolved.
2022-07-29 16:43:17 +01:00
Oliver
c6cff75ed5
Adapted to slight change in rivo/uniseg.
2022-07-28 10:46:20 +01:00
Oliver
4b7fb7ecd6
Upgraded to new rivo/uniseg version.
2022-07-27 20:09:10 +01:00
Oliver
566470eb7a
Some basic TextArea code.
2022-07-27 12:48:38 +01:00
Oliver
1560f6b730
Added a note about TextView not being suitable for large texts.
2022-02-15 18:52:21 +01:00
Oliver
5962c4c9a7
Added TextView.GetOriginalLineCount().
2022-02-15 15:59:26 +01:00
Oliver
1b3174ee3d
Added callback functions for focus and blur events.
2021-11-08 17:05:49 +01:00
Sam Whited
d0d3379128
Fix deadlock in SetText
...
Signed-off-by: Sam Whited <sam@samwhited.com>
2021-10-29 07:27:24 -04:00
Oliver
792841ab16
Very minor change.
2021-10-29 10:45:20 +02:00
Oliver
21d44f5cd1
Some cosmetic cleanup regarding the last merge.
2021-10-29 10:38:51 +02:00
Sam Whited
c0678d7aa9
Fix race condition with locking in SetText
...
Signed-off-by: Sam Whited <sam@samwhited.com>
2021-10-25 07:37:04 -04:00
Sam Whited
4385df9931
Add batch writer for TextView's
2021-10-25 07:26:09 -04:00
Oliver
ba9f3a6fa1
Fixed missed tag at EOL in TextView. Fixes #531
2021-04-27 09:08:36 +02:00
Oliver
ae9464cc35
Upgraded printing and style handling to the new definition of tcell.ColorDefault.
2021-03-12 18:48:52 +01:00
Oliver
c3311ba972
Fixed format for reinserted region tag.
2021-02-16 22:07:47 +01:00
Oliver
09f1384966
Added SetMaxLines() to TextView. Resolves #451 , fixes #452
2021-02-16 20:32:36 +01:00
Oliver
675ed5b96b
Removed Focusable interface.
2020-11-17 19:33:25 +01:00
Oliver
e4d167311d
Upgraded to latest tcell version. Results in a minor incompatibility in the Table class.
2020-10-18 14:15:57 +02:00
Oliver
42866ecf6c
Selected autocomplete items should be used without colour tags. Fixes #472
2020-09-15 13:45:12 +02:00
Oliver
9b49eb3fef
Added a "clicked" handler to TableCell. Resolves #470
2020-09-15 13:09:44 +02:00
Oliver
deb54e1422
Keyboard events are now propagated down the hierarchy, allowing users to intercept them. Closes #421
2020-08-18 12:05:43 +02:00
Oliver
c65badfc3d
TextView.GetText() and .GetRegionText() didn't filter out empty colour tags. Fixes #453
2020-07-12 13:34:19 +02:00
Oliver
8aa2912f24
Bugfixes in ANSI escape sequence handling as well as TextView, fixes #320 , fixes #344
2020-05-27 21:41:21 +02:00
Oliver
ca37f83cb2
TextView changed function is always called in a separate goroutine to avoid deadlocks. Fixes #416
2020-04-04 22:46:04 +02:00
Oliver
f395cf6e33
Added mouse scrolling to List, Table, TextView, and TreeView.
2020-03-29 21:36:06 +02:00