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

46 Commits

Author SHA1 Message Date
Chris Cummer
66b69471d0 Properly scope Config to the wtf package and remove it as a dependency from everywhere else 2018-06-16 14:59:22 -07:00
Chris Cummer
5e13618813 Close #168. Modal dialogs now center onscreen properly 2018-06-09 08:52:32 -07:00
Chris Cummer
d2dfcd8978 Add cfg/ as a top-level package concept 2018-06-09 03:58:45 -07:00
Hossein Mehrabi
f33b756d02 removed useless condition in Refresh 2018-06-08 10:59:47 +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
Chris Cummer
218b6937b1 Implement ASCII-only widget titles
Widget titles can now be specified in the config file via a 'title' key.
Example:

  wtf:
    mods:
      todo:
        title: Tada

which can include emoji. No need to force everyone to look at my emoji,
now they can define their own.
2018-06-03 20:54:07 -07:00
Hossein Mehrabi
6443df092f use widget.View.SetText to print 2018-06-03 10:53:26 +04:30
Hossein Mehrabi
59463d22ff clean up todo list 2018-06-02 10:49:51 +04:30
Chris Cummer
4c620a9c3c Fix #101. Thanks to @stegmanh 2018-06-01 23:01:20 -07:00
Chris Cummer
9e49c18c44 Close #84. Add wtf.colors.background config option 2018-05-31 08:52:37 -07:00
Chris Cummer
7bf2ad88cf Clean up the Todo display code 2018-05-30 21:51:39 -07:00
Hossein Mehrabi
3c66bc9152 removed unused variable 2018-05-30 21:50:27 +04:30
Hossein Mehrabi
977eb55944 todo: update index of selected item in the end 2018-05-30 21:42:26 +04:30
Hossein Mehrabi
30428ec3a4 move checked todos to bottom 2018-05-29 21:42:19 +04:30
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
9caaadb48d Delete commented-out requires 2018-05-24 14:36:18 -07:00
Chris Cummer
ff49ecb082 Closes #29. wtf.go --help [module name] returns help text if any is available. 2018-05-22 20:35:56 -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
89b1b0f517 Fixes #39: Todo crashes when space pressed with no selection 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
6e179de0c4 Add help text for Weather 2018-05-03 17:21:59 -07:00
Chris Cummer
1baa884ce9 Add help modal to TextFile module 2018-05-03 17:12:39 -07:00
Chris Cummer
72f9543e75 Can dismiss help modal from the keyboard 2018-05-03 17:02:17 -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
55b2490cc9 First pass at removing some of the Todo modal code duplication 2018-04-29 10:46:44 -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
72ebf8e69c WIP 2018-04-28 23:31:31 -07:00
Chris Cummer
4a30de5d51 Rough draft of adding new items to Todo 2018-04-28 22:06:12 -07:00
Chris Cummer
c63d92a1f7 Can edit existing Todo items via modal 2018-04-28 16:17:45 -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
5a31de74fe Add Makefile support for 'make install' and version info 2018-04-23 17:35:14 -07:00
Chris Cummer
34dcdbbe66 Better keyboard support for todo 2018-04-23 17:05:37 -07:00
Chris Cummer
a92af549fe Remove the Index prop from Todo#Item. Don't need it 2018-04-23 10:18:33 -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
e1950bf756 Checked items are _gray_ 2018-04-22 22:05:26 -07:00
Chris Cummer
db162feddd Can promote/demote todo list items 2018-04-22 21:56:36 -07:00
Chris Cummer
4fb308c555 Can delete items from Todo list 2018-04-22 21:31:02 -07:00
Chris Cummer
a6e8d64284 Todo list persists to file 2018-04-22 21:17:27 -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