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

16 Commits

Author SHA1 Message Date
Chris Cummer
cde904ff08
Use errcheck to find unhandled errors (#795)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-17 08:26:16 -08:00
Chris Cummer
1bfca29d17
WTF-657 Add spec coverage for cfg/common_settings.go (#728)
* WTF-657 Add spec coverage for cfg/common_settings.go

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

* WTF-657 Add spec coverage for cfg/position_validation.go

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

* WTF-657 Add spec coverage for cfg/validations.go

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

* WTF-657 Add spec coverage for checklist/checklist.go

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

* WTF-657 Add spec coverage for checklist/checklist_item.go

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

* WTF-657 Add spec coverage for utils/conversions.go

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

* WTF-657 Get rid of utils.Home() function

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

* WTF-657 Add spec coverage for utils/homedir.go

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

* WTF-657 Add spec coverage for utils/text.go

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

* WTF-657 Clean up utils/utils.go

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-30 17:35:00 -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
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
Chris Cummer
e97283433f Fix potential race conditions in Logger 2019-04-25 20:18:02 -07:00
Chris Cummer
f09d08bda2 WTF-400 Common settings implemented 2019-04-18 18:22:19 -07:00
Chris Cummer
8bc217e9a1 WTF-400 Logger extracted to new config format 2019-04-15 20:29:45 -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
Anand Sudhir Prayaga
c8b6eb2b60 Fix references to old Github repo location with new one 2018-11-28 14:47:06 +01:00
Chris Cummer
a48d15079a Remove RefreshedAt from TextWidget
This attribute is used for absolutely nothing. It doesn't need to exist.
2018-10-11 17:12:29 -04:00
Chris Cummer
f650bb1698 Remove the app.Draw() gorountine
Prefer to have widgets force a draw when their data changes. This should
reduce draws (unless the user has a module installed that updates >=
1/sec, the old draw default).

This should also remove a source of some of the race conditions that
users were experiencing (though not all, there are still many).
2018-09-24 14:40:57 -07:00
Chris Cummer
7d8acf725d Fix a number of potential security issues 2018-08-03 10:14:57 -07:00
Chris Cummer
1a898b05e3 Remove complexity from a lot of string display statements 2018-06-21 19:32:32 -07:00
Chris Cummer
0e141e03c8 Closes #217. Use XDG-compatible config directory
This change is largely experimental and it's entirely possible it could
wipe out your existing configuration. Be warned.

Old config path was: ~/.wtf/
New config path is:  ~/.config/wtf/

If an existing config directory already exists, this change attempts to
copy it to the new location.

Note that if your config file contains paths to files in the old config
directory, they won't work. You'll need to change them by hand.
2018-06-20 16:46:02 -07:00
Anand Sudhir Prayaga
65ef6fc9eb Rename widget logging to logger to maintain consistency 2018-06-19 14:22:08 +02:00
Chris Cummer
6acf1775b8 Rename logging/ to logger/ 2018-06-16 22:17:10 -07:00