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

59 Commits

Author SHA1 Message Date
Chris Cummer
9154441c32 Common help code into HelpfulWidget 2018-08-01 15:54:29 -07:00
Chris Cummer
00abe70309 Improves the speed of the help modal display 2018-08-01 15:12:05 -07:00
Chris Cummer
beb0c43b07 Add character identifiers to focusable widgets
When no widget has focus, press the letter key to focus on the widget
assigned to that letter.

Example:

    GitHub (d)

    Press "d" to focus on the GitHub widget.
2018-07-30 15:51:19 -07:00
bertl4398
d91ff525c2 Merge branch 'issue207' of https://github.com/bertl4398/wtf into issue207 2018-07-27 21:56:40 +02:00
bertl4398
ad22bc6562 fix highlight color 2018-07-27 21:55:25 +02:00
Chris Cummer
494fe79fbf
Merge branch 'master' into issue207 2018-07-27 12:52:15 -04:00
bertl4398
06bbbc283e fix offset 2018-07-27 18:01:30 +02:00
bertl4398
77e5ca087e insert highlight regions for scrolling 2018-07-27 17:58:25 +02:00
Anand Sudhir Prayaga
455fcffb5e Fix keyboard command "o" in the todo widget
Pass the full path of the todo file to openFileUtil.

Fix #256
2018-07-27 10:36:28 +02:00
Chris Cummer
8fc6b83d59 Move generic checklist code into its own package 2018-07-18 10:15:46 -07:00
Chris Cummer
1be970eaec List highlights span entire widget width 2018-07-18 10:06:28 -07:00
Chris Cummer
4ad25edc0e First pass at creating a generic checklist component
The idea is that checklist-like modules would all share an underlying
checklist implementation (ie: Todo and Todoist) to avoid duplication.
2018-07-12 11:29:41 -07:00
Chris Cummer
1a898b05e3 Remove complexity from a lot of string display statements 2018-06-21 19:32:32 -07:00
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