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

212 Commits

Author SHA1 Message Date
Chris Cummer
cd5a7968c4 Fix bug with positioning in which I hard-coded the positions because....? 2018-05-18 12:35:59 -07:00
Chris Cummer
8bb9115538 A very basic start to adding some unit tests 2018-05-18 11:54:39 -07:00
Chris Cummer
a62b910893 Closes #43. Add CommandRunner module to the app.
CommandRunner allows you to define a terminal command and arguments, run
it on a schedule, and view the output.

Examples:

   ping -3 cisco.com
2018-05-17 17:15:03 -07:00
Chris Cummer
2ecd5e4b84 Closes #44. Cannot tab to disabled widgets. 2018-05-16 17:22:14 -07:00
Chris Cummer
27107fcd37 Closes #33. Creates .wtf dir and config.yml if they don't exist. 2018-05-16 10:23:46 -07:00
Chris Cummer
0ff65bbd5c Row color as common function 2018-05-14 21:04:37 -07:00
Chris Cummer
8e46547d1c Fixes #35: TextFile only opens files in ~/.wtf/ 2018-05-14 21:04:37 -07:00
Chris Cummer
25430c228d Adds the Weather module to the documentation 2018-05-14 21:04:37 -07:00
Chris Cummer
7adc0cdb11 Bringing back the Status widget 2018-05-14 21:04:37 -07:00
Chris Cummer
d246cb4c4a Rename TextViewer to Wtfable 2018-05-14 21:04:37 -07:00
Chris Cummer
6158a055da Better focus check code using FocustState enum 2018-05-14 21:04:37 -07:00
Chris Cummer
00504c43ff Fixes #39. Unfocused tab problem solved 2018-05-14 21:04:37 -07:00
Chris Cummer
72f9543e75 Can dismiss help modal from the keyboard 2018-05-03 17:02:17 -07:00
Chris Cummer
8d0a0b81fa Less crap display of the help modal. Just need to figure out key events now 2018-05-03 15:56:06 -07:00
Chris Cummer
351f5100bc Closer to having a help modal. Text is showing onscreen (badly) 2018-05-03 15:49:06 -07:00
Chris Cummer
53d2fdacda A crap version that uses tview's Modal 2018-05-03 11:26:53 -07:00
Chris Cummer
6ccdbabec9 WIP Very rudimentary modal showing up 2018-05-03 08:56:15 -07:00
Chris Cummer
4727255df6 Focusable widgets get their own border color 2018-05-02 14:27:18 -07:00
Chris Cummer
90ab57e1b2 Ensure the origin refresh() always kicks off, even for 0-interval widgets. 2018-05-01 14:26:56 -07:00
Chris Cummer
d982ca48c5 Add FocusTracker#Refocus() 2018-04-29 22:42:29 -07:00
Chris Cummer
eb9a56ed77 Zero focusables not a problem anymore 2018-04-29 11:57:49 -07:00
Chris Cummer
da75e116c1 Fix merge conflict in todo/widget.go 2018-04-29 07:56:02 -07:00
Chris Cummer
037c90db85 Widget#focus now a thing
Widgets can inform whether or not they should get tab focus.

Widgets that provide additional functionality should return true.

Widgets that have no extra capability should return false.

This allows the FocusTracker to only tab through and focus on widgets
for which it provides value.
2018-04-28 23:41:51 -07:00
Chris Cummer
4a30de5d51 Rough draft of adding new items to Todo 2018-04-28 22:06:12 -07:00
Chris Cummer
bef57d799b Rudimentary modal showing up for Todo on 'e' 2018-04-27 15:48:54 -07:00
Chris Cummer
ed52835650 Todo and TextFile have keyboard short-cut to open file in OS 2018-04-27 15:48:54 -07:00
Chris Cummer
62c9e3892a Generic PadRow function added 2018-04-23 09:35:23 -07:00
Chris Cummer
3de253bd0d Better color config standardization. It's not just random anymore 2018-04-23 09:17:54 -07:00
Chris Cummer
d7bc26684a Some minor cleanup 2018-04-22 23:40:57 -07:00
Chris Cummer
4fb308c555 Can delete items from Todo list 2018-04-22 21:31:02 -07:00
Chris Cummer
a0ce5eb412 Basic selectable todo functionality working
Can:
- move between todo items
- toggle checked/unchecked state

Cannot:
- persiste changes to file
- add items
- delete items
2018-04-22 20:59:13 -07:00
Chris Cummer
590c83c134 Display the error if the config file cannot be loaded 2018-04-19 06:01:16 -07:00
Chris Cummer
12ef3919dc Cleanup of stray files. Don't need so many single-use packages 2018-04-18 17:51:43 -07:00
Chris Cummer
3175b8d9cc Quick run through to add some documentation comments 2018-04-17 15:55:36 -07:00
Chris Cummer
912de2fa11 Can focus/blur widgets (with focus border color) 2018-04-17 04:26:18 -07:00
Chris Cummer
6321182b7e Fetches, stores, and returns multiweather, with ticks marks in display 2018-04-16 03:53:29 -07:00
Chris Cummer
0b20c4939e Accepts optional --config argument to specify a config file 2018-04-15 14:41:39 -07:00
Chris Cummer
c3abb76612 Add basic textfile widget. 2018-04-15 14:27:41 -07:00
Chris Cummer
693a04b5e1 Removed a bunch of common boilerplate code from widget initialization 2018-04-15 13:08:17 -07:00
Chris Cummer
84ecf296a5 RefreshedAt moved to the end of the refresh (because that makes more sense, doesn't it?) 2018-04-13 16:14:57 -07:00
Chris Cummer
8e3287ba5c Cleaner code around widget creation in wtf.go 2018-04-13 12:00:29 -07:00
Chris Cummer
da27ad60a9 Add Ctrl-R to manually force a widget refresh 2018-04-12 15:19:08 -07:00
Chris Cummer
1bf6efdaf8 Hacky timezone display in Status 2018-04-12 12:00:11 -07:00
Chris Cummer
34b5b69231 Differentiate between right now Now() and today from midnight 2018-04-10 12:42:28 -07:00
Chris Cummer
27a267b123 Cleaner config format and added simple_config.yml example 2018-04-10 11:28:48 -07:00
Chris Cummer
10142ebddc Add the ability to get BambooHR away tomorrow 2018-04-09 13:30:21 -07:00
Chris Cummer
7072820967 Column and row definitions into the config file. No need to compile to change sizes 2018-04-09 13:19:16 -07:00
Chris Cummer
01aab4cc53 wtf.Position into its own file 2018-04-08 05:04:33 -07:00
Chris Cummer
9bda045ce1 Streamlining the widget creation process a bit more. Coords into config 2018-04-07 23:36:05 -07:00
Chris Cummer
cbf5b45c62 Add the Enabler and TextViewer interfaces 2018-04-07 14:39:28 -07:00