Chris Cummer
f650bb1698
Remove the app.Draw() gorountine
...
Prefer to have widgets force a draw when their data changes. This should
reduce draws (unless the user has a module installed that updates >=
1/sec, the old draw default).
This should also remove a source of some of the race conditions that
users were experiencing (though not all, there are still many).
2018-09-24 14:40:57 -07:00
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
Chris Cummer
494fe79fbf
Merge branch 'master' into issue207
2018-07-27 12:52:15 -04: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
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
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
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
Chris Cummer
7bf2ad88cf
Clean up the Todo display code
2018-05-30 21:51:39 -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
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
34dcdbbe66
Better keyboard support for todo
2018-04-23 17:05:37 -07:00
Chris Cummer
d7bc26684a
Some minor cleanup
2018-04-22 23:40:57 -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