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
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
Sean Smith
6765404bee
Add help text to zendesk widget
...
It has keyboard input, so should have a help page
2019-05-10 14:27:26 -04:00
Chris Cummer
0b59a3b62f
Fix slow render of new item modal in Todo
2019-05-10 08:42:37 -07:00
Chris Cummer
075402315e
Fix missing title in Clocks
2019-05-10 08:42:37 -07: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
Sean Smith
8c4bf5abc6
Make datadog widget scrollable/interactive
2019-05-10 08:48:15 -04:00
Chris Cummer
4e8c85bc34
Fix line highlighting in HackerNews and Todo modules
2019-05-09 19:27:53 -07:00
Sean Smith
a5f98c138a
Move closing region tag to the end of the line
...
Highlight works by highlighting the entire region that exists
Since current region starts and immediately ends, there is no highlighting
2019-05-09 11:00:19 -04:00
Graham Anderson
a53593f8c6
fix(gcal): remove possible extraneous variation codepoint
2019-05-08 18:50:15 +01:00
Chris Cummer
d77415783a
Remove the unnecessary mutex from gcal
2019-05-07 21:58:12 -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
Sean Smith
fa0edec74b
Fix up Unknown widget to work again
...
Store module Type in common settings to enable this
Simplify the function params to be more inline with existing ones, vs being unique
2019-05-02 23:40:49 -04:00
Chris Cummer
6ab7eb4022
Merge branch 'master' into dupespoc2
2019-05-01 17:16:11 -07:00
Sean Smith
c1f8ebce75
Increase the pagination limit for github
...
Currently, we are only getting a subset of PRs. For very active repos, this might mean I don't see any of my PRs
This isn't an explicit fix (iterating through pages would be), but at least lessens the problem
2019-05-01 10:58:48 -04:00
Sean Smith
14abd422b2
Add default titles, to mimic original behavior
...
Have the modules set their own titles
If no title is specified, use this title, rather than default to name
2019-04-30 23:38:37 -04:00
Sean Smith
3a96c303a8
Allow duplicates of modules
...
This leverages the recent config changes, extending it so that config is literally using passed config, rather than
passed config value
Uses cmdRunner as an example for #181
Because config turns into a map, names are the root keys, and an optional type is provided
2019-04-30 23:33:59 -04:00
Chris Cummer
378cce8726
Re-apply the explicit title rendering for focusable widgets
2019-04-30 09:09:11 -07:00
Sean Smith
17d53ca39a
Update title handling so that config based title can be used
...
There is already default handling of title. Remove instances where people are unknowingly overriding it
For instances where we want to set special things, make sure to use CommonSettings.Title, so people can still override
2019-04-30 07:13:52 -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
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
retgits
e03b65b442
feat: update to go modules
2019-04-26 16:39:44 -07:00
Chris Cummer
879fa92777
Fix a number of minor bugs in the Twitter module
2019-04-26 06:22:05 -07:00
Chris Cummer
f14766a1c0
WTF-415 Improve NBA Scores date format. Closes #415
2019-04-25 21:00:47 -07:00
Chris Cummer
de00f6ab1f
WTF-415 Add arrow key navigation to NBA Scores
2019-04-25 20:58:40 -07:00
Chris Cummer
e97283433f
Fix potential race conditions in Logger
2019-04-25 20:18:02 -07:00
Chris Cummer
5445309aa0
WTF-315 Fix race conditions caused by writing to view
2019-04-25 19:39:49 -07:00
Chris Cummer
a1aae6206f
Fix race conditions caused by writing to view
2019-04-25 00:11:16 -07:00
Chris Cummer
b7be868798
Fix race conditions caused by writing to view
2019-04-24 23:53:31 -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
fa357294fb
Fix HackerNews row selection issue. Closes #411
2019-04-23 03:14:50 -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
79733145f4
Gcal widget properly renders title again
2019-04-19 19:10:22 -07:00
Chris Cummer
6227b2bcdb
WTF-400 Remove last of wtf.Config from CryptoLive
2019-04-19 13:49:28 -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
a8e3602817
WTF-400 Fix title display in CmdRunner
2019-04-19 09:35:05 -07:00
Chris Cummer
643840e0da
WTF-400 Checklist items now have dynamically-settable checkmark icons
2019-04-19 09:08:36 -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
2ed3c087b8
WTF-400 Move jobNameRegex setting into Jenkins settings
2019-04-17 17:42:51 -07:00
Chris Cummer
b50c762dab
WTF-400 Move name and configKey values from widget to settings
2019-04-17 17:16:26 -07:00
Jack Morris
9f878c9e12
import regexp
...
Adding in regexp import
2019-04-17 10:43:24 +01:00
Jack Morris
a89e32141f
Allow users to filter jenkins jobs by regex
...
Allows users to filter the Jenkins jobs shown in the widget by providing a regular expression in the config file. The regex should be specified in the config like so:
```
jobNameRegex: ^[a-z]+.$
```
Another example:
```
jobNameRegex^[a-z]+\[[0-9]+\]$
```
2019-04-17 10:24:39 +01:00
Chris Cummer
2807a2200e
WTF-400 Fix missed wtf.Config occurrances
2019-04-16 21:52:10 -07:00
Chris Cummer
6f98ecccf7
WTF-400 Unknown extracted to new config format
2019-04-16 21:43:46 -07:00
Chris Cummer
4b3f957c61
WTF-400 Zendesk extracted to new config format
2019-04-16 21:40:53 -07:00