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

34 Commits

Author SHA1 Message Date
Chris Cummer
9f94e8c63a Add an app exit banner message 2020-10-11 16:55:16 -07:00
Chris Cummer
450483791f Obey the linter; make the linter happy
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-07 16:06:57 -07:00
Chris Cummer
87ce0d887e Pretty format the GitHub stats
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-06 20:05:19 -07:00
Matt Murphy
a0a85a5383 Make display whitespace consistent 2020-05-25 00:37:03 -04:00
Matt Murphy
b6a666fe59 Add setting to hide sections of GitHub module 2020-05-23 11:32:40 -04:00
Chris Cummer
200dbcc03c
WTF-730 Fix missing color key config error (#738)
* WTF-730 Fix missing color key config error

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Add Subheading color formatting to modules

Users can now set a `subheading` color in their config to change the
color of subheadings in widget display.

Defaults to `red`.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix oustanding color issues

Clean up missing color config changes not addressed in earlier commits.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Remove unused dependency

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Base cleanup

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix a few bugs related to color config changes

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix issues with PagerDuty subheading display

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix bug with Todo list colour rendering

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-09 11:21:45 -08: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
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
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
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
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
b07f3c5e67 Reimpliments the module configuration validation
Now supports displaying errors from multiple widgets.
2019-07-07 16:04:43 -07: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
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
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
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
retgits
e03b65b442
feat: update to go modules 2019-04-26 16:39:44 -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
6c22ad6d27 WTF-400 GitHub 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
Sean Smith
8030380f89 Migrate all modules to their own subfolder
Handles #375
2019-02-18 11:16:34 -05:00