Alex Fornuto
419d43670c
remove pull request count from issue count ( #694 )
2019-10-12 17:51:53 -04:00
Chris Cummer
bf877f5fa7
Constantize the defaultFocus value for each module
2019-09-22 18:12:29 -07:00
Chris Cummer
f83e57c0b7
WTF-566 Support GitLab projects as list
2019-09-06 20:52:26 -07:00
Joel Valentine
9f7ff56f46
reducing the size of the cross
2019-09-06 12:20:36 +01:00
Joel Valentine
d4e0b0956f
add unicode for exclamation mark
2019-09-06 02:50:53 +01:00
Joel Valentine
596bfbac02
fix: fixing linting for the github module
...
adding documentation to github module
fixing malformed icon causing display errors
2019-09-06 02:42:06 +01:00
Chris Cummer
faa2098912
Merge branch 'github-selection' of github.com:Midnight-Conqueror/wtf into Midnight-Conqueror-github-selection
2019-09-05 05:23:59 -07:00
Sean Smith
12a006f5a8
Pass through github client errors to display
...
Per #598 , we crash on occasion.
We are swallowing errors incorrectly, and should catch/render
2019-09-04 21:26:28 -04:00
Joel Valentine
bd2f73aea5
unselecting correctly
2019-09-04 18:39:23 +01:00
Joel Valentine
c21b7c32a8
appending to a slice and referencing items within that using the currently selected
2019-09-04 17:55:32 +01:00
Joel Valentine
cbae7449b0
adding back padding
2019-08-31 19:24:24 +01:00
Joel Valentine
b98ce54750
scroll to top when unselecting
2019-08-31 19:01:29 +01:00
Joel Valentine
74d2fbe833
using the correct order and maintaining scroll position when changing source
2019-08-31 18:58:25 +01:00
Joel Valentine
5740b689be
adding back mergedString
2019-08-31 17:27:49 +01:00
Joel Valentine
925930f76f
addressing performance
2019-08-31 17:24:13 +01:00
Joel Valentine
10f020405f
instead of resetting the selected each refresh now setting the max each refresh
2019-08-31 17:08:27 +01:00
Joel Valentine
70c5e02ca9
fixing an issue where after a refresh the maxItems would be greater than the actual amount
2019-08-31 16:39:33 +01:00
Joel Valentine
d212037ff5
cleaning up
2019-08-31 16:05:52 +01:00
Joel Valentine
d0308142a3
changing keybind
2019-08-31 15:47:28 +01:00
Joel Valentine
ccaca4f1c0
using just the pr/issue number as highlighted
2019-08-31 15:47:28 +01:00
Joel Valentine
55937c4c40
added highlighting and opening of pull requests
2019-08-31 15:47:28 +01:00
Chris Cummer
fce8b69459
Support case-insensitive 'apiKey' config keys
...
'apiKey' is one that people are likely to spell wrong in their configs
as 'apikey'. Given that there's no sanity-checking around required
config values yet, and a missing API key can cause silent failures in
some modules, be liberal in accepting spelling.
2019-08-29 06:34:52 -07:00
Sean Smith
14e7619075
Renormalize the redraw function
...
Have all instances take a function
Update the remaining modules to take this into account
Numerous smaller refactors to make some widgets work more or less the same
2019-08-27 21:51:37 -04:00
Sean Smith
51e4325f0b
Handle all the widgets that use GetRect
2019-08-24 23:20:38 -04:00
Chris Cummer
523a0bec2c
Remove the need for every module to define a widget.Refresh keyboard control
2019-08-23 21:18:51 -07:00
Chris Cummer
5337656c58
Remove the need for every module to define a widget.ShowHelp keyboard control
...
This common functionality is moved up to KeyboardWidget. Modules now
include widget.InitializeCommonControls() instead.
2019-08-23 21:18:51 -07:00
Chris Cummer
4e46fff145
Move the utils.go file into the /utils directory
2019-08-05 10:50:12 -07:00
Chris Cummer
dbc047516d
Move all components responsible for module composition into /view
2019-08-04 21:42:40 -07:00
Chris Cummer
c17678013d
Fix a couple of 'go vet' issues
2019-08-03 17:16:50 -07:00
Chris Cummer
b07f3c5e67
Reimpliments the module configuration validation
...
Now supports displaying errors from multiple widgets.
2019-07-07 16:04:43 -07:00
Sean Smith
5f57edb212
Even more help settings
...
Blitz through g
Clean up a setting that no longer exists for gcal
2019-07-04 11:40:53 -04:00
Chris Cummer
e846fdeef8
Update go-github dependencies
2019-06-28 16:32:24 -07:00
Sean DuBois
93d91c9313
Add new key 'customQueries' to github module
...
This key allows users to pass an arbitrary amount of queries
that contain custom filters. A simple query that shows all closed
PRs could be written like the following.
```
customQueries:
closedPullRequests:
title: "Closed Requests"
perPage: 10
filter:
- "is:closed"
- "is:pr"
```
Resolves #469
2019-06-06 16:30:16 -07:00
Sean Smith
02e0666697
Remove more app usages which are unnecessary
2019-05-24 22:22:56 -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
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
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
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
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
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
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
a1aae6206f
Fix race conditions caused by writing to view
2019-04-25 00:11:16 -07:00