Chris Cummer
dbc047516d
Move all components responsible for module composition into /view
2019-08-04 21:42:40 -07:00
Chris Cummer
5dbce09e4f
Make Transmission widget scrollable
2019-06-26 06:58:27 -07:00
Sean Smith
c4d58ece81
Add a helper function to do highlighting in a uniform way
2019-05-24 22:06:47 -04:00
Chris Cummer
b9fc08e098
Todoist only refreshes if it is not disabled and there is a current project
2019-05-24 14:27:29 -07:00
Chris Cummer
09ea4cd874
Todoist now properly updates list items when Refresh() is called
2019-05-24 14:26:03 -07: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
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
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
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
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
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
a1aae6206f
Fix race conditions caused by writing to view
2019-04-25 00:11:16 -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
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
b50c762dab
WTF-400 Move name and configKey values from widget to settings
2019-04-17 17:16:26 -07:00
Chris Cummer
8b2fc71f92
WTF-400 Todoist extracted to new config format
2019-04-16 10:01:55 -07:00
Sean Smith
8030380f89
Migrate all modules to their own subfolder
...
Handles #375
2019-02-18 11:16:34 -05:00