Hossein Mehrabi
af98a750f1
stop widget's scheduler if the widget disabled after live-reloading
2018-06-08 02:02:42 +04:30
liyiheng
c3111c20fc
Merge branch 'master' of https://github.com/senorprogrammer/wtf
2018-06-04 14:27:41 +08:00
liyiheng
9828e5ba3e
Improvement: Power mod for Linux
2018-06-04 14:27:05 +08:00
Hossein Mehrabi
2de364a2ef
read widget title from config file
2018-06-04 05:58:37 +04:30
Chris Cummer
9e49c18c44
Close #84 . Add wtf.colors.background config option
2018-05-31 08:52:37 -07:00
Chris Cummer
d9d1a82c89
Change -i flag to -m. See 'wtf --help' for details
2018-05-31 05:22:47 -07:00
Chris Cummer
d0da319a52
Closes #72 . --info flag displays module help text
...
Usage:
wtf -i=todo
wtf --info=todo
2018-05-29 18:02:11 -07:00
Chris Cummer
a46ff5c10e
Pull command flags out of main() and into its own file
2018-05-29 17:52:46 -07:00
Chris Cummer
dcfacd9510
[WTF-53] Closes #53 . Todo display properly pads line lengths.
...
[WTF-53]
2018-05-26 21:19:08 -07:00
Chris Cummer
52156e13b9
Spelling mistake in config path
2018-05-25 15:56:30 -07:00
Chris Cummer
6d230a3d70
Apparently I don't know how to spell 'sigil'
2018-05-24 22:05:37 -07:00
Chris Cummer
5f7c3260c1
Now possible to define the characters for use in paging indicators
2018-05-24 09:03:00 -07:00
Chris Cummer
f23ac8573f
Fixes bug with default configuration YAML
2018-05-22 21:47:06 -07:00
Chris Cummer
38cf1d5632
Security module now displays logged-in users
2018-05-22 17:51:59 -07:00
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