16 Commits

Author SHA1 Message Date
aditya-K2
0ce8f06bd1 Fix: Context Menu re-opened after closing.
When "enter" was pressed (i.e an item was selected) the context menu
did close but was redrawn when the window was resized. This commit fixes
that.
2023-05-13 00:14:55 +05:30
aditya-K2
96cb9f15e8 Alias config.Config to cfg 2023-05-01 14:56:38 +05:30
aditya-K2
cc4971543c Embed Pages in Root 2023-05-01 13:09:07 +05:30
aditya-K2
85b4aba1ad Use my fork of tview 2023-04-17 23:02:50 +05:30
aditya-K2
ff99a5e853 Use config.RedrawInterval to draw context menu 2023-04-17 22:25:35 +05:30
aditya-K2
a86f7dfd97 renaming some structs 2023-04-11 06:48:03 +05:30
aditya-K2
7070f26466 Rename Main=>Root MainS=>Main 2023-04-11 01:29:07 +05:30
aditya-K2
ee02874dd3 add AfterContextClose() function 2023-04-10 09:19:12 +05:30
aditya-K2
514869feff fix: unable to select anything other than the first entry 2023-04-09 05:09:56 +05:30
aditya-K2
2a289e3d1a New Implementation of Context Menu
Every InteractiveView should have it's own context Menu. So You set the
contextOpener and contextHandler with the contextKey which is used to
open the contextMenu.
2023-04-09 04:40:47 +05:30
aditya-K2
19d35d231c Better Implementation for Selection Handler 2023-01-26 05:30:31 +05:30
aditya-K2
32ecd96ff9 Better ContentHandler implementation 2023-01-26 05:05:59 +05:30
aditya-K2
31b53b3b3a rename ctx.go -> menu 2023-01-25 02:54:38 +05:30
aditya-K2
6c4531b721 minor changes 2023-01-25 02:52:10 +05:30
aditya-K2
2f29f51ec4 new centeredWidget primitive
CenteredWidget opens a centered widget on the main screen.

ContextMenu implements this interface
2023-01-25 02:46:33 +05:30
aditya-K2
1e294221d9 move files to ui package 2023-01-25 01:36:59 +05:30