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

78 Commits

Author SHA1 Message Date
Sean Smith
fa0edec74b Fix up Unknown widget to work again
Store module Type in common settings to enable this
Simplify the function params to be more inline with existing ones, vs being unique
2019-05-02 23:40:49 -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
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
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
Sean Smith
5abd701b40 Decouple modules from global config
Rather than referencing wtc.Config, instead pass the global config
Also, look up config for the module early and pass that in sooner, to deal with fewer long paths and get rid of the
ConfigKey variable
2019-04-27 22:26:23 -04:00
Chris Cummer
d0c1a5db96 WTF-413 Fix right-align to account for both widget borders. Closes #413 2019-04-25 19:52:15 -07:00
Chris Cummer
f60ce6967d Clean up TextWidget by simplifying the view creation 2019-04-23 19:59:51 -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
6fd9430ef8 WTF-400 TextWidget properly renders title again 2019-04-19 14:06:55 -07:00
Chris Cummer
a8e3602817 WTF-400 Fix title display in CmdRunner 2019-04-19 09:35:05 -07:00
Chris Cummer
59f0bc6cfc WTF-400 Partial conversion to new Common settings 2019-04-18 19:02:08 -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
daa422aee4 WTF-400 Minor code cleanup 2019-04-16 13:32:29 -07:00
Chris Cummer
8bc217e9a1 WTF-400 Logger extracted to new config format 2019-04-15 20:29:45 -07:00
Chris Cummer
cf661e7e15 WTF-400 Todo extracted to new config format 2019-04-15 10:05:57 -07:00
Anand Sudhir Prayaga
c8b6eb2b60 Fix references to old Github repo location with new one 2018-11-28 14:47:06 +01:00
Anand Sudhir Prayaga
9a89bf81e0 Use new config file path in error message 2018-08-20 14:24:34 +02:00
Chris Cummer
1f27cf5b00 Clean up the code in cfg/ a bit 2018-08-03 05:31:31 -07:00
Chris Cummer
0b1ec96545 Formatting fixes 2018-06-28 17:46:55 -07:00
Chris Cummer
1b32dd8277 Delete unused function 2018-06-24 07:52:42 -07:00
Chris Cummer
343612eb5e Update new config paths in documentation 2018-06-20 16:59:11 -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
4496cc7c31 Clean up the flag and config handling in main() 2018-06-16 09:14:24 -07:00
Chris Cummer
d9e1624304 Delete redundant config functions file 2018-06-13 09:28:58 -07:00
Andrew
a558ee948f Reverted names 2018-06-10 03:36:53 +03:00
Andrew
da1ffdd817 Changed name to andrewzolotukhin 2018-06-10 03:15:58 +03:00
Chris Cummer
d2dfcd8978 Add cfg/ as a top-level package concept 2018-06-09 03:58:45 -07:00