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

17 Commits

Author SHA1 Message Date
Chris Cummer
9f94e8c63a Add an app exit banner message 2020-10-11 16:55:16 -07:00
Sam Roberts
4bb725db9e golangci-lint configuration file
golangci-lint can run all the currently enabled linters, and as far as I
can tell, does it in under 5 seconds as opposed to over 180 seconds
(compare `time make cilint` and `time make lint`).

Some of the linters that are listed in the "enabled" section but
commented out looked like a good idea to me, and fairly low hanging
fruit to fix, but they are not passing at the moment.

All the linters covered in the current Makefile are run.

TODO:
- replace lint target in Makefile with golangci-lint
- remove .github/workflow/errcheck.yml
2020-05-16 12:34:57 -07:00
Chris Cummer
3a388fba23
20191215 code improvements (#790)
* Upgrade godo to latest
* Fix a bunch of issues found by
* Running staticcheck on a codebase for the first time is a sobering experience
* go mod tidy
* More static improvements

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:29 -08: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
Sean Smith
68e56eaa10 Add new urlutil option, and have these be reloadable
Handles #897 and part of #593
2019-10-12 17:44:28 -04:00
Sean Smith
9f81207037 Clean up cfg error handling a bit
Pass in the actual file being used, rather than hardcoded `config.yaml`
Differences between two error messages are not that distinct
Centralize on one and clean up all the `isCustomConfig` tracking
2019-09-12 20:28:24 -04:00
Chris Cummer
79bc78a5f7 Don't die if the watcher can't find the file. Continue trying 2019-09-10 21:48:33 -07:00
Chris Cummer
85fc8f28a1 Include in extended tcell terminal descriptions 2019-09-04 05:37:54 -07:00
Sean Smith
146cbb598a Attempt to offer linux transparency
Add 'transparent' as a color option
Default to 'transparent'
Make sure to set color to appropriate things, so transparency is achieved
2019-08-20 22:28:14 -04:00
Chris Cummer
2ba50f2a73 Move WidgetMaker functionality into /app 2019-08-04 21:20:53 -07:00
Sean Smith
10772c2190 Fix keyboard fallthrough
We are expecting Esc and Tab to perform other actions, so these need to not return nil
Addresses #520
2019-08-03 22:24:22 -04:00
Chris Cummer
82c89668a0 Move the ModuleValidator from /wtf to /app 2019-07-29 06:15:51 -07:00
Chris Cummer
b790b27000 Move the FocusTracker from /wtf to /app 2019-07-29 06:15:51 -07:00
Chris Cummer
8436b74ac1 Make all exported fields unexported in WtfApp 2019-07-29 06:15:51 -07:00
Chris Cummer
73391b06e4 Add ability to explicitly stop modules via a QuitChan 2019-07-29 06:15:51 -07:00
Chris Cummer
cfd3c731ba Move the scheduler up into /app 2019-07-29 06:15:51 -07:00
Chris Cummer
a6d18e286a Extract most app setup out of main and into wtf_app 2019-07-29 06:15:51 -07:00