Sean Smith
a283dd8ed8
Migrate gitlab to multisource widget
2019-05-23 20:45:01 -04:00
Sean Smith
aeb76e9c57
Flip weather over to a multi-source widget
2019-05-23 20:41:14 -04:00
Sean Smith
d8bb0debd9
Remove unused import
2019-05-22 18:57:08 -04:00
Sean Smith
2fb1a06ca0
Add Scrollable to todoist widget
...
This is now a multi-source scrollable widget, trying to leverage as much of existing functionality as possible for
consistency
2019-05-22 00:22:17 -04:00
Kirill Motkov
f0771cd013
Some code improvements
...
* Some assignments simplified by using assignment operators
* Rewrite switch statement with only one case as if.
* Rewrite if-else chain as a switch statement.
* go fmt `modules/todoist/project.go` file.
2019-05-21 17:29:09 +03:00
Sean Smith
a2f5db7847
Harmonize keyboard controls
...
Make sure everyone has a refresh option
Have specific ordering:
- Help
- Refresh
- Select next
- Select prev
- ...
Add unselect where applicable
2019-05-20 18:45:08 -04:00
Sean Smith
34bf319c2e
Rename Prev/Next in MultiSourceWidget
...
This will open the possibility of a MultiSourceScrollableWidget with no collisions
2019-05-18 11:23:12 -04:00
Chris Cummer
18cc6c34ad
WTF-455 Pass nil options for Gitlab project. Closes #455
2019-05-16 14:42:34 -07:00
Chris Cummer
accfa70ba5
Don't panic when there's no city data for Weather
2019-05-15 18:32:25 -07:00
Chris Cummer
3cc19dc27c
Improve the look of Trello widget a bit
2019-05-15 10:43:13 -07:00
Chris Cummer
6879695e89
WTF-454 Fixes multi-list issue with Trello. Closes #454
2019-05-15 10:35:22 -07:00
Sean Smith
cb64f7df22
Handle historical config
...
Parse repositories both ways
Have github manually set sources, since historical config may not handle
2019-05-14 20:46:40 -04:00
Chris Cummer
85014a4ded
Merge branch 'master' into githubmultisource
2019-05-13 20:15:27 -07:00
Chris Cummer
5620db2046
Merge branch 'master' into todoistmulti
2019-05-13 16:50:10 -07:00
Sean Smith
6a41935e61
Flip todoist over to multiview widget
...
This can also probably be made scrollable in the future as well
2019-05-12 23:15:48 -04:00
Sean Smith
d410f548b8
Cleanup git widget
...
Next/Prev already implemented properly in multisourcewidget
2019-05-12 22:55:41 -04:00
Sean Smith
c35034d587
Make github a multisource widget
...
Note, that this is a backwards incompatible change
Previous config:
```
repositories:
wtf: "wtfutil"
```
New Config:
```
repositories:
- "wtfutil/wtf"
```
2019-05-12 22:48:17 -04:00
Chris Cummer
2f2599b34f
Merge branch 'master' into pagerduty-schedule-specifications
2019-05-12 15:38:02 -07:00
Chris Cummer
a2e67fa498
Merge branch 'master' into autohelp
2019-05-12 10:48:29 -07:00
Chris Cummer
5f054c8ffd
Allow PagerDuty to restrict on scheduleID
2019-05-12 09:52:48 -07: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
Sean Smith
42821b3102
Clean up drawing functionality
...
Fix up a bunch of missed places that can use the standardized `Redraw` method
2019-05-11 12:11:26 -04:00
Chris Cummer
e9e62c2065
Merge branch 'master' of github.com:wtfutil/wtf
2019-05-11 08:59:58 -07:00
Sean Smith
03b1abd740
Remove datadog app reference
2019-05-11 11:54:52 -04:00
Chris Cummer
db746802c9
Improve the display of Twitter; less-harsh colours
2019-05-11 08:49:26 -07: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
78fc097818
Update widget.go
2019-05-10 23:27:48 -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
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