Sean Smith
46c31103b8
Make widget name part of the output
2019-05-11 20:00:35 -04:00
Sean Smith
9b8ce06990
Split out char/key mapping help
...
This makes help more inline with previous instances
Wrap everything in `[]`, so keys like ` ` show up correctly
Pad characters for keypresses, so things have pretty alignment
2019-05-11 19:55:03 -04:00
Sean Smith
cd35d1e0a3
Re-add command line help
2019-05-11 19:47:59 -04:00
Sean Smith
7f3daaac59
Have keyboard widget manage its own help
...
Define help with keys
This means that keys and help are automatically in sync
This means that you can't define keys, but forget help
This unfortunately also means that formatting may not be quite as good
2019-05-11 12:15:52 -04:00
Chris Cummer
8c4346f8b8
Merge branch 'master' into splituplogger
2019-05-11 08:43:37 -07:00
Chris Cummer
2067a73072
Fix a bug in scrollable.RowColor
2019-05-11 08:41:00 -07:00
Chris Cummer
18ed770fe2
Merge branch 'master' into abstractscrollable
2019-05-10 23:26:14 -07:00
Sean Smith
c328ba4c11
Split up logger and widget
...
This allows us to use the logger from the wtf directory
For example when trying to debug sort ordering in focus_tracker
2019-05-10 19:07:52 -04:00
Sean Smith
0d2667685e
Add stable sort for focusable windows
...
Addresses #435
2019-05-10 18:54:31 -04:00
Sean Smith
210723cd74
Create abtract scrollable widget
...
This cleans up a bunch of boilerplate for scrollable items and standardizes their usage
2019-05-10 17:06:45 -04:00
Chris Cummer
68ed842c87
Fix double-render of title in Weather
2019-05-10 08:42:37 -07:00
Sean Smith
018d2af3ae
Add a global Redraw method for TextWidget
...
Partially addresses #429 , by centralizing widget drawing
2019-05-10 08:42:37 -07:00
Chris Cummer
2d0706c40b
WTF-427 Use new keyboard implementation for widgets. Closes #427
2019-05-06 12:54:07 -07:00
Chris Cummer
a9c5dc3be8
WTF-427 Add KeyboardWidget and switch Todo widget to using it
2019-05-06 12:54:04 -07:00
Chris Cummer
ed8d357881
Simplifies the use of MultiSourceWidget
...
Widgets that embed MultiSourceWidget no longer have to explicitly call
loadSources(). This is done as part of the set-up for MultiSourceWidget.
2019-04-28 20:43:39 -07:00
Sean Smith
ce2a9b3301
Get rid of the rest of global config
...
Pass appropriate config to display/focus tracker
Move open file command to a singular global
Remove global config variable
2019-04-27 22:26:23 -04:00
Sean Smith
2d7cafa3bf
Rip out two more instances of global config
...
One setting TERM environment variable
Another in multisource widget
2019-04-27 22:26:23 -04:00
Sean Smith
bcf899df72
Further reduce usage of global
...
Bargraph moves to common settings
"Global" config moves out of wtf and into cfg for the few things that need it
We can probably eliminate a global config used across things if we want to
2019-04-27 22:26:23 -04:00
Sean Smith
5abd701b40
Decouple modules from global config
...
Rather than referencing wtc.Config, instead pass the global config
Also, look up config for the module early and pass that in sooner, to deal with fewer long paths and get rid of the
ConfigKey variable
2019-04-27 22:26:23 -04:00
Chris Cummer
b7be868798
Fix race conditions caused by writing to view
2019-04-24 23:53:31 -07:00
Chris Cummer
40cdfe7146
Move widget and FocusTracker creation out of main to simplify main's internals
2019-04-23 21:06:26 -07:00
Chris Cummer
a18625f427
Remove extraneous app.Draw() calls by having app.Draw() in its own routine
2019-04-23 20:33:03 -07:00
Chris Cummer
f60ce6967d
Clean up TextWidget by simplifying the view creation
2019-04-23 19:59:51 -07:00
Chris Cummer
88fdf9702b
WTF-400 Move settings-related functions from util.go into common_settings.go
2019-04-21 21:35:45 -07:00
Chris Cummer
6fd9430ef8
WTF-400 TextWidget properly renders title again
2019-04-19 14:06:55 -07:00
Chris Cummer
bc967be9e2
WTF-400 Remove last of wtf.Config from Bittex widget
2019-04-19 10:50:27 -07:00
Chris Cummer
59f0bc6cfc
WTF-400 Partial conversion to new Common settings
2019-04-18 19:02:08 -07:00
Chris Cummer
f09d08bda2
WTF-400 Common settings implemented
2019-04-18 18:22:19 -07:00
Chris Cummer
fea83a38b2
WTF-400 Jira extracted to new config format
2019-04-15 10:46:41 -07:00
Chris Cummer
cf661e7e15
WTF-400 Todo extracted to new config format
2019-04-15 10:05:57 -07:00
Chris Cummer
aa313bdaa4
WTF-389 Log an exception and terminate if widget config is invalid
...
If, on startup, a widget's positional configuration is invalid (ie:
cannot be displayed onscreen) then terminate the app and inform about
which widget is erroring
2019-04-12 05:29:44 -07:00
Chris Cummer
c9c7e124cc
WTF-389 Don't load widgets that have invalid position co-ordinates in their config
2019-04-12 05:00:40 -07:00
Johan Denoyer
5adfbfb066
Added HTTP/HTTPS handling in OpenFile() function in wtf/utils.go to manage proper URL openings
2019-01-18 16:33:27 +01:00
Nicholas Eden
cab27c62ab
resource usage mod
2018-11-12 01:30:24 -08:00
Mathias Weber
7d9dd56aaa
add static hot key assignments for text widgets
2018-10-15 22:51:35 +02:00
Chris Cummer
a48d15079a
Remove RefreshedAt from TextWidget
...
This attribute is used for absolutely nothing. It doesn't need to exist.
2018-10-11 17:12:29 -04:00
Chris Cummer
15968718af
Todo modal shows up much faster now, looks better
2018-10-01 16:44:51 -07:00
Nicholas Eden
d05300d849
allow changing of title color
2018-09-26 23:33:08 -07:00
Nicholas Eden
c717cecff9
Add option to set background and text color on a module basis, resolves #307
2018-09-26 21:30:54 -07:00
Chris Cummer
f650bb1698
Remove the app.Draw() gorountine
...
Prefer to have widgets force a draw when their data changes. This should
reduce draws (unless the user has a module installed that updates >=
1/sec, the old draw default).
This should also remove a source of some of the race conditions that
users were experiencing (though not all, there are still many).
2018-09-24 14:40:57 -07:00
Chris Cummer
9bd2430063
Minor code cleanup
2018-09-24 08:52:57 -07:00
Chris Cummer
0824ccf15c
Really don't have nav characters > 9
2018-09-05 12:05:31 -07:00
Chris Cummer
74b9fd841b
Use numbers for shortcuv nav
...
Frees up letters to be used in widet menus
2018-09-05 12:02:00 -07:00
Chris Cummer
ad431ee3a7
Move common nav controls into MultiSourceWidget
2018-09-01 17:37:09 -07:00
Chris Cummer
e760561027
Twitter module supports subscribing to multiple screen names
2018-09-01 17:05:52 -07:00
Chris Cummer
0cdaf5c2d3
Add the MultiSourceWidget concept
2018-09-01 12:57:03 -07:00
Chris Cummer
0e797fea3d
Textfile module now supports multiple text files
2018-08-30 08:18:42 -07:00
Chris Cummer
ed75f9648a
Merge branch 'master' of github.com:senorprogrammer/wtf
2018-08-30 08:16:24 -07:00
Anand Sudhir Prayaga
d4853f7cfd
Make jenkins widget interactive
2018-08-30 16:32:05 +02:00
Chris Cummer
8824604330
Better name in the FocusTracker
2018-08-30 07:29:33 -07:00