1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

212 Commits

Author SHA1 Message Date
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
Chris Cummer
d5017cd06c Improve the display of tweets in the Twitter widget 2018-08-22 13:44:12 -07:00
bertl4398
db1ec731bd fix missing import 2018-08-17 21:26:55 +02:00
bertl4398
5514b0c601 update colors.go 2018-08-17 21:24:22 +02:00
Anand Sudhir Prayaga
a4b2383e92 Hide sigils when there is only one page to display
Silis show up even when there is only one or no pages to display. They're not needed in these cases as there is nothing to navigate between..

Fix #291
2018-08-13 11:13:15 +02:00
Anand Sudhir Prayaga
8f06f65a26 Fix #282 - clocks doesn't change colour 2018-08-07 12:18:31 +02:00
Anand Sudhir Prayaga
568276343c Make the travisci module interactive
* Add ability to select and open builds
* Add commit message (oneline style) to text displayed in the widget
* Add documentation on the new keyboard shortcuts
* Cleanup some duplicate code
2018-08-03 15:42:24 +02:00
Chris Cummer
72c192cabf Clean up a bunch of if statements based on govet results 2018-08-03 05:40:39 -07:00
Chris Cummer
9154441c32 Common help code into HelpfulWidget 2018-08-01 15:54:29 -07:00
Chris Cummer
5761f2858d Redraw when focusing via nav shortcuts to feel more responsive 2018-07-31 21:20:27 -07:00
Federico Ruggi
d6a97a1b9c Merge branch 'master' into fix-focus-modals
# Conflicts:
#	wtf/focus_tracker.go
2018-07-31 18:35:43 +02:00
Chris Cummer
ac08d7a6d4 Nav shortcuts are now configurable 2018-07-31 08:44:52 -07:00
Federico Ruggi
76bc33c7e6 do not set focus if already taken by widget 2018-07-31 16:43:42 +02:00