129 Commits

Author SHA1 Message Date
Jesse Duffield
619845fffd support tabs on views 2019-06-09 12:01:46 +10:00
Jesse Duffield
625842035f keybindings in simple editor for going to start/end of line and deleting the whole line 2019-05-26 12:26:29 +10:00
mjarkk
1a12390d8c Fixed the second error 2019-05-06 19:42:41 +02:00
mjarkk
1163a688bc Added some extra error checks to solve the first error 2019-05-06 19:36:23 +02:00
Jesse Duffield
bac774b26e add SetViewBeneath function 2019-05-05 18:56:23 +10:00
mjarkk
b171f61102 Added ╴ and ╶ to the side of boxes when 1 height 2019-04-27 13:34:05 +02:00
Jesse Duffield
af5a758d6c support views of height 1 or even negative height 2019-04-26 13:40:05 +10:00
Jesse Duffield
1b91467ea2 don't write subtitle outside of view's bounds 2019-04-10 09:57:31 +10:00
Jesse Duffield
f0f0ab442e fix performance issue causing high cpu drain 2019-03-05 21:24:56 +11:00
Jesse Duffield
b502ee11d6 stop polling termbox events after closing the gui 2019-03-03 14:18:04 +11:00
Jesse Duffield
e70eea4359 add loader animations to views with the HasLoader bool set 2019-02-15 20:51:46 +11:00
Jesse Duffield
5d41a21e5c use standard errors when defining package level errors and wrap when percolating up 2019-02-15 20:50:55 +11:00
Jesse Duffield
985c2f8d59 use go-errors package to give stack traces to new errors 2019-02-11 21:59:59 +11:00
Jesse Duffield
4fca348422 missed a couple of imports that I need to switch to my fork of termbox 2018-09-19 19:58:27 +10:00
Jesse Duffield
2cb6e95bbb support subtitles on panels 2018-09-05 20:40:05 +10:00
Jesse Duffield
7818a0f933 ignore global rune keybindings on editable views 2018-08-25 09:11:37 +10:00
Jesse Duffield
76a959bb4b enforce that keybindings can only be handled by a single handler, prioritising view handlers over global handlers 2018-08-21 22:46:08 +10:00
Jesse Duffield
432b7f6215 flush the gui before polling for any events 2018-08-14 08:31:18 +10:00
Jesse Duffield
3c923f53ac defining overlapping edge support in the Gui constructor 2018-08-05 22:19:20 +10:00
Jesse Duffield
0ccc6860b1 disable overlapping views for now 2018-08-05 21:58:02 +10:00
Jesse Duffield
a5207ef0d6 revert bolding of box character 2018-08-05 21:45:26 +10:00
Jesse Duffield
b8c5d2cb4c support collapsed edges (WIP) 2018-08-05 21:44:09 +10:00
Jesse Duffield
92551286ea default to input mode of InputEsc 2018-06-05 18:43:28 +10:00
Roi Martin
a251da5a9f Minor syntax clean-ups 2017-08-20 00:28:06 +02:00
Roi Martin
70497a1d13 Fix typo 2017-08-20 00:17:11 +02:00
Roi Martin
6564cfcacb Rename *Gui.Execute() to *Gui.Update() 2017-08-19 00:13:30 +02:00
Roi Martin
7ba3ea9d2c Use ColorDefault as default bg and fg color 2017-08-16 19:28:26 +02:00
Roi Martin
7e8dafc560 Remove empty line 2017-08-16 00:58:08 +02:00
telecoda
4316bb79d4 Check for collisions in reverse view order 2017-08-15 20:52:01 +02:00
Roi Martin
a984617410 Simplify SetViewOnBottom 2017-08-15 20:34:06 +02:00
Julien Breux
93acb816a8 Add set view on bottom feature 2017-08-15 20:19:15 +02:00
Roi Martin
88d2b471d4 Rename *Gui.Ascii to *Gui.ASCII 2017-02-11 02:06:03 +01:00
Roi Martin
cfc4e0298f Add *Gui.Ascii to enable ASCII line art 2017-02-10 23:17:26 +01:00
Roi Martin
56a1633c76 Minor style changes 2016-11-13 20:45:04 +01:00
Dustin Willis Webber
ff841413b6
256 OutputMode support 2016-11-13 14:06:04 -05:00
Roi Martin
0975ddb2a8 SetManager and SetManagerFunc delete keybindings 2016-10-30 13:20:05 +01:00
Roi Martin
308833a2cf Add *Gui.Views(). Add flow layout example 2016-10-27 23:09:13 +02:00
Roi Martin
aa4ac778d3 Move Editor into View. Update docs 2016-10-27 00:43:28 +02:00
Roi Martin
19125a0a67 Do not edit the view if a keybinding matches the event 2016-10-26 23:22:51 +02:00
Roi Martin
e38ba07224 Minor refactoring. Avoid shadow vars. 2016-10-24 08:50:51 +02:00
Roi Martin
40dbad569f Introduce GUI managers to replace layout functions 2016-10-24 08:36:23 +02:00
Roi Martin
ddbc9be671 Merge *Gui.Init() with *Gui.NewGui() 2016-10-24 02:24:41 +02:00
Roi Martin
550f04e523 Simplify how frames are drawn 2016-10-19 00:15:47 +02:00
Roi Martin
d5cb1ac216 Minor fixes in doc 2016-10-19 00:12:01 +02:00
Roi Martin
a7019c8547 Add *Gui.Highlight to enable/disable current view's custom color 2016-10-18 23:30:43 +02:00
Roi Martin
c0ae071931 Use *Gui.{SelFgColor,SelBgColor} to set current view's color
- Use *Gui.{FgColor,BgColor} to set GUI's color.
- Use *Gui.{SelFgColor,SelBgColor} to set current view's color.
- Drop *Gui.ActiveColor and *View.ActiveColor.
2016-10-18 22:49:31 +02:00
Roi Martin
463428abda Minor refactoring. Update examples 2016-10-18 00:24:16 +02:00
Henri Koski
7779534f95 Add attribute ActiveColor to configure the color of the current view 2016-10-17 23:25:56 +02:00
Roi Martin
cea263b118 Remove unnecessary error in onKey() 2016-10-11 08:41:22 +02:00
Roi Martin
10d2bb60ea Fix mouse mode 2016-10-11 08:34:27 +02:00