Commit Graph

67 Commits

Author SHA1 Message Date
Trevor Slocum a6a473f866 Add TextView.SetReindexBuffer 2020-09-03 19:23:56 -07:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Oliver 81c828bfe0 TextView.GetText() and .GetRegionText() didn't filter out empty colour tags. Fixes #453 2020-07-13 14:41:29 -07:00
Trevor Slocum 49536324ce Rename Keys.SelectAlt to Keys.Select2 2020-06-10 09:52:50 -07:00
Oliver 06a427a43a Bugfixes in ANSI escape sequence handling as well as TextView, fixes #320, fixes #344 2020-06-09 14:52:59 -07:00
Trevor Slocum 8acccbefa7 Split up shortcuts into primary and secondary 2020-05-18 20:06:54 -07:00
Trevor Slocum 777d2f09fc Use Keys shortcuts with Button, CheckBox, Grid and Table 2020-05-18 19:49:25 -07:00
Trevor Slocum 3feec6ebfb Document adding TextView.SetMaxLines 2020-05-15 14:56:19 -07:00
Javier Peletier 9f88a788e4 TextView: Add SetMaxLines() 2020-05-15 18:52:20 +02:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
Trevor Slocum 0aa37dca06 Expand click area of presentation demo tabs 2020-04-01 08:59:06 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum aae1af2a19 Make ProgressBar fields private 2020-03-27 12:54:05 -07:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Sam Whited 6e0ac2dd4b Don't skip regions at end of line 2020-01-05 08:53:56 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 0f6549646b Added SetFocus() to Modal, focuses on the provided button. Resolves #364 2019-11-27 18:27:26 +01:00
Oliver bacbf5155b Wrong comparator led to wrong scrolling behaviour. Fixes #341, resolves #342 2019-10-18 13:56:45 +02:00
Oliver c35e6b2b4c Avoiding infinite loop on narrow TextViews. Fixes #333 2019-10-17 12:07:41 +02:00
Oliver fc28d646d0 Primitive widths/heights should not become negative. Also fixed a
TextView issue where purging led to panics. Fixes #306
2019-07-09 14:04:41 +01:00
Oliver 3c477cc248 TextView.ScrollTo() will turn off end-tracking. Fixes #274 2019-05-14 17:07:36 +02:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
rivo b373355e9d
Merge pull request #235 from Bios-Marcel/prevent-regex-recompilation
Prevent recompilation of regexes
2019-02-13 21:27:03 +01:00
Marcel Schramm f3b5afb8cd
Move TabSize comment in texview.go back to where it belongs. 2019-02-13 20:23:52 +01:00
Oliver 3e289f3aca Added TextView.GetText(). Resolves #233 2019-02-13 16:36:28 +01:00
Marcel Schramm f4690e43a0
Prevent recompilation of regexes 2019-02-13 16:26:27 +01:00
Oliver a45c8edf60 Fixed region/color tag escaping bug. Fixes #234 2019-02-13 16:07:01 +01:00
Oliver 380278f41c Bugfix in TextView. 2018-10-29 11:12:40 +01:00
Oliver c22d5570be Bugfixes/improvements to PR #172. 2018-10-28 13:42:49 +01:00
Oliver 4a4db5c136 TextView also uses iterator function now. 2018-10-17 18:24:18 +02:00
Oliver bc39bf8d24 Bugfixes related to zero-width joiners. 2018-09-26 12:03:53 +02:00
Oliver 29458dad3e Added support for zero-width joiners. Resolves #161 2018-09-25 17:31:49 +02:00
Oliver 6614b16d90 Added GetScrollOffset() to TextView. Resolves #124 2018-07-28 21:30:50 +02:00
Oliver 4631cd7337 Added the tree view. 2018-06-20 10:06:05 +02:00
Oliver 6ffb56ee2a TextView now reindexes only on width changes if wrapping is enabled. 2018-06-09 22:35:48 +02:00
Oliver 0ebcb1ed99 Excluding control characters from output (creates unwanted artefacts). Fixes #130 2018-06-09 13:16:20 +02:00
Oliver 71ecf1f429 Added a scroll function to TextView. Resolves #124 2018-05-28 21:27:25 +02:00
Oliver 213c37c368 Fixed handling of combining unicode characters. Fixes #101 2018-05-03 08:05:11 +02:00
Oliver 911fb9543e Added Escape(), ANSIIWriter(), and TranslateANSII(). Resolves #84, resolves #24 2018-04-14 00:05:25 +02:00
Oliver b4fd66d458 Fixed style calculation in TextView which led to unwanted artefacts when the default terminal background color was not black. Fixes #91 2018-04-07 13:28:32 +02:00
Oliver 83d0a16fb2 Added background colors and text attributes to color tags. Resolves #91 2018-04-01 21:19:10 +02:00
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 2018-03-19 21:25:30 +01:00
Oliver 91a6ff44b6 Finished implementation of grid layout. 2018-02-20 11:19:30 +01:00
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 2018-01-17 21:17:59 +01:00
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 2018-01-17 17:13:36 +01:00
Oliver 13cf1c1ee4 Added a way to output tags as cleartext in TextView even if dynamic colors or regions are enabled. 2018-01-17 10:09:09 +01:00
Oliver 626453b2a6 All primitives now offer a way to intercept all key events sent to them. Also made the global key event intercept handler more general/consistent. Resolves #22 2018-01-14 21:29:34 +01:00
Oliver 8bc6a3f684 Minor additions to pull request #30. Resolves #28. 2018-01-14 13:35:57 +01:00
rivo f26cdc84a2
Merge pull request #30 from maja42/TextViewScrolling
Thanks. I will make some modifications to this. You might want to check them out.
2018-01-14 13:32:08 +01:00