Chris Cummer
1afaa2ba45
Clean up the openFileUtil code in main
...
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-11 20:37:04 -07:00
Chris Cummer
9f94e8c63a
Add an app exit banner message
2020-10-11 16:55:16 -07:00
Todd Trimble
65a9894bba
Explain time/tzdata import with comment
2020-10-11 19:35:31 -04:00
Todd Trimble
3ea1d4542a
Blank import tzdata to fix bug on Windows host
2020-10-11 13:05:45 -04:00
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
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
Chris Cummer
6266ed883a
Remove dead comment
...
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-11 05:34:40 -07: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
4e46fff145
Move the utils.go file into the /utils directory
2019-08-05 10:50:12 -07:00
Chris Cummer
4c2b52cdbb
Improve the config file handling process
...
* Don't create a default config if a custom config is being passed in
* Textfile: don't die if the file cannot be found
2019-08-02 01:51:56 -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
a6d18e286a
Extract most app setup out of main and into wtf_app
2019-07-29 06:15:51 -07:00
Chris Cummer
324666a3ec
Clean up the MakeWidgets process by miniming the number of params passed around
2019-07-29 06:15:51 -07:00
Chris Cummer
0bc6965681
WTF-504 Improve the default config
2019-07-22 22:54:01 -07:00
Chris Cummer
7a70ed75be
Move settings of TERM out of main()
2019-07-21 16:32:18 -07:00
Chris Cummer
7a7df7d4a7
Clean up the /cfg files a bit; simplify config handling in main.go
2019-07-21 16:23:45 -07:00
Chris Cummer
5e18538f14
Display a useful error message for custom configuration files
2019-07-20 13:04:13 -07:00
Chris Cummer
452e6f20db
WTF-510 Add error messaging if the config directories cannot be created
2019-07-20 12:23:19 -07:00
Chris Cummer
00ccf8a95b
WTF-510 Create the ~/.config directory if it is missing
2019-07-20 12:12:04 -07:00
Chris Cummer
75f6e84fb0
Fix config file loading issue
2019-07-16 17:49:39 -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
Chris Cummer
c6ab669edf
Improve the documentation in /flags
2019-06-28 21:35:08 -07:00
Chris Cummer
f183a854c8
Improve keyboard handling in main.go
2019-05-24 16:56:44 -07:00
Chris Cummer
9a877b5e04
Improve the look of the help modal a little bit
2019-05-23 15:09:35 -07:00
Chris Cummer
5db30c0e8d
Add help screen to main app
2019-05-23 14:24:15 -07:00
Sean Smith
cd35d1e0a3
Re-add command line help
2019-05-11 19:47:59 -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
Chris Cummer
2d0706c40b
WTF-427 Use new keyboard implementation for widgets. Closes #427
2019-05-06 12:54:07 -07:00
Sean Smith
ce2a9b3301
Get rid of the rest of global config
...
Pass appropriate config to display/focus tracker
Move open file command to a singular global
Remove global config variable
2019-04-27 22:26:23 -04:00
Sean Smith
2d7cafa3bf
Rip out two more instances of global config
...
One setting TERM environment variable
Another in multisource widget
2019-04-27 22:26:23 -04:00
Sean Smith
bcf899df72
Further reduce usage of global
...
Bargraph moves to common settings
"Global" config moves out of wtf and into cfg for the few things that need it
We can probably eliminate a global config used across things if we want to
2019-04-27 22:26:23 -04:00
Chris Cummer
b7be868798
Fix race conditions caused by writing to view
2019-04-24 23:53:31 -07:00
Chris Cummer
388851f02d
Fix comment spelling mistake in main.go
2019-04-23 21:08:18 -07:00
Chris Cummer
40cdfe7146
Move widget and FocusTracker creation out of main to simplify main's internals
2019-04-23 21:06:26 -07:00
Chris Cummer
a18625f427
Remove extraneous app.Draw() calls by having app.Draw() in its own routine
2019-04-23 20:33:03 -07:00
Chris Cummer
5eb21d82b6
Delete unused code block from main.go
2019-04-22 19:51:54 -07:00
Chris Cummer
f09d08bda2
WTF-400 Common settings implemented
2019-04-18 18:22:19 -07:00
Chris Cummer
b50c762dab
WTF-400 Move name and configKey values from widget to settings
2019-04-17 17:16:26 -07:00
Chris Cummer
6f98ecccf7
WTF-400 Unknown extracted to new config format
2019-04-16 21:43:46 -07:00
Chris Cummer
4b3f957c61
WTF-400 Zendesk extracted to new config format
2019-04-16 21:40:53 -07:00
Chris Cummer
cfdfb044da
WTF-400 Weather extracted to new config format
2019-04-16 21:10:58 -07:00
Chris Cummer
d0faa3cb40
WTF-400 VictorOps extracted to new config format
2019-04-16 20:40:44 -07:00
Chris Cummer
eaa8825aa5
WTF-400 Twitter extracted to new config format
2019-04-16 20:33:03 -07:00
Chris Cummer
4b5045a0bb
WTF-400 Trello extracted to new config format
2019-04-16 20:22:54 -07:00
Chris Cummer
5593f19e1c
WTF-400 TravisCI extracted to new config format
2019-04-16 17:09:08 -07:00
Chris Cummer
8b2fc71f92
WTF-400 Todoist extracted to new config format
2019-04-16 10:01:55 -07:00
Chris Cummer
c489f2a4f4
WTF-400 Textfile extracted to new config format
2019-04-16 09:30:32 -07:00
Chris Cummer
ea88f5eece
WTF-400 System extracted to new config format
2019-04-16 09:09:42 -07:00
Chris Cummer
5f07cb6db4
WTF-400 Status extracted to new config format
2019-04-16 02:55:59 -07:00