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
Alvaro [Andor]
e1e620a573
Update bin file name in flags 2019-09-03 19:36:03 +02:00
Chris Cummer
a8bde9ecbe WTF-553 Fix config.yml creation issue on first run 2019-08-29 21:29:28 -07:00
Chris Cummer
5e18538f14 Display a useful error message for custom configuration files 2019-07-20 13:04:13 -07:00
Chris Cummer
c6ab669edf Improve the documentation in /flags 2019-06-28 21:35:08 -07: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
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
Anand Sudhir Prayaga
c8b6eb2b60 Fix references to old Github repo location with new one 2018-11-28 14:47:06 +01:00
Chris Cummer
dc50bce2ed Add -p/--profile flag to enable cpu/memory profiling
1. Compile the binary with the profiling flag in it.
2. Run the binary with profiling enabled: ./wtf -p
3. Run the go profiling tool against the resulting *.pprof file:

    go tool pprof --pdf /path/to/wtfbinary /var/path/to/cpu.pprof >
profile.pdf

4. View pretty PDF file
2018-07-17 10:17:35 -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
Chris Cummer
582eba4c7f Make flags package responsible for its own display 2018-06-16 12:46:16 -07:00
Chris Cummer
4496cc7c31 Clean up the flag and config handling in main() 2018-06-16 09:14:24 -07:00
Chris Cummer
dd42080ed8 Move responsibility for version display out of flags 2018-06-16 08:37:55 -07:00
Chris Cummer
4a00c114ce Move command line flags into it's own module 2018-06-16 08:31:11 -07:00