Commit Graph

68 Commits

Author SHA1 Message Date
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum 9ec0a6d3f2 Position ContextMenu on selected item when negative coordinates are provided 2020-08-11 15:31:18 -07:00
Trevor Slocum 49536324ce Rename Keys.SelectAlt to Keys.Select2 2020-06-10 09:52:50 -07:00
Trevor Slocum 81cfea205d Fix negative List offset and DropDown selection
Resolves #16.
2020-06-02 15:51:03 -07:00
Trevor Slocum 698a0adf93 Add List.SetSelectedAlwaysCentered 2020-05-20 15:36:19 -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 b65f57f2fc Rename matchesKeys to HitShortcut 2020-05-17 10:14:17 -07:00
Trevor Slocum 91afabde29 Allow multiple sets of keybindings to be provided to matchesKeys 2020-05-16 11:21:10 -07:00
Trevor Slocum 04a0149298 Add Keys to allow default keybindings to be modified 2020-05-15 16:17:41 -07:00
Trevor Slocum d6093272ed Fix incorrect List offset in DropDown 2020-05-09 17:41:43 -07:00
Trevor Slocum ce60530a57 Always initialize context menu List
Resolves #12
2020-05-09 10:37:21 -07:00
Trevor Slocum cfce21cc90 Do not handle right click on List when there is no context menu 2020-05-08 19:51:50 -07:00
Trevor Slocum 41db607cc9 Fix mutex usage in List.MouseHandler 2020-05-08 16:12:48 -07:00
Trevor Slocum 68e4485d34 Document adding Vim-style keybindings to List 2020-05-08 15:48:52 -07:00
Tryffel 9347d1b2c8 Add 'j k G g' shortcuts for moving inside list 2020-05-08 23:41:54 +03:00
Trevor Slocum 52150da761 Add List.GetOffset and List.SetOffset 2020-05-01 16:08:22 -07:00
Trevor Slocum 642a8d8ad4 Fix List not updating selected item before calling selected handlers 2020-04-29 14:50:10 -07:00
Trevor Slocum 66d2785058 Add List.SetSelectedTextAttributes 2020-04-28 14:59:40 -07:00
Trevor Slocum 48c31ff1a0 Remove wiki references 2020-04-26 16:59:33 -07:00
Trevor Slocum 5bfb860744 Fix List.SetSelectedFocusOnly 2020-04-25 06:35:14 -07:00
Trevor Slocum 54834cdd54 Add List.Transform 2020-04-21 15:16:03 -07:00
Trevor Slocum 57ef7437e3 Add ContextMenu 2020-04-18 20:00:36 -07:00
rivo 1f765c8695 Merge pull request #422 from rivo/mouse
Add mouse support
2020-03-30 10:22:55 -07:00
Trevor Slocum e29d4b73b9 Make cview thread-safe 2020-03-25 14:32:57 +00:00
Trevor Slocum b90f05a226 Update README 2020-02-24 18:11:37 -08:00
Trevor Slocum 74844d6d3f Fix applying ScrollBarAlways to List 2020-02-24 08:06:04 -08:00
Trevor Slocum 7175730374 Fix panic when navigating empty list 2020-02-17 08:25:21 -08:00
Trevor Slocum c6f9bcda29 Add option to always show scroll bar 2020-02-13 09:51:01 -08:00
Trevor Slocum c40fd422f0 Do not wrap around list by default 2020-02-10 17:17:22 -08:00
Trevor Slocum 96f3c15040 Add scroll bar to List, DropDown, Table and TreeView 2020-02-01 07:27:15 -08:00
Trevor Slocum 5f880bc2c7 Migrate to GitLab 2020-01-22 15:28:19 -08:00
Chris Miller a52eae5a0d Refactor EventMouse 2020-01-01 20:24:34 -08:00
Chris Miller ad59b43801 Get mouse actions rather than just mouse state 2020-01-01 20:18:40 -08:00
Chris Miller 67c158fa9c Fire Selected on list item click 2020-01-01 20:18:40 -08:00
Chris Miller 5b47ba1f32 More mouse handling for primitives 2020-01-01 20:18:40 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver 6e00e540f2 Added a wrap-around flag to the List. Resolves #380 2019-12-29 17:47:05 +01:00
Oliver f63eca142c List changed event was not fired when SetCurrentItem() was called. Fixes #315 2019-07-11 11:37:27 +01:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 03d744dee3 SetOffset() also turns off end-tracking in Table. Fixes #238 2019-03-08 20:13:09 +01:00
ardnew c43d107310 merge https://github.com/rivo/tview into list-spanhighlight, resolving conflicts for rivo/tview#220 2019-02-20 11:06:48 -06:00
ardnew 26ff9c763a renaming new struct field as requested in rivo/tview#220 2019-02-20 10:58:59 -06:00
Oliver 84fdb36408 Fixed confusing comments. Fixes #231 2019-01-24 13:01:53 +01:00
Oliver 0a179573ae Improved List scrolling (using an offset member variable). Fixes #217 2019-01-23 21:40:01 +01:00
Oliver bbe0f17f96 Added FindItems() and InsertItem() to List. Also allowed negative indices for some List functions. Resolves #213, resolves #215 2019-01-12 21:22:58 +01:00
ardnew e0f6e89550 change: added option to span selection highlight across width of list view 2019-01-03 00:51:11 -06:00
Oliver 08411f6e81 Added an option to List which hides the selection when List has no focus. Resolves #193 2018-11-26 11:00:48 +01:00
Oliver 2590cd6434 Added RemoveItem() function to List. Resolves #158 2018-09-05 12:57:35 +02:00
Oliver 7afc7ac893 Index out of range bugfix. Fixes #101 2018-05-18 23:46:33 +02:00