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

14 Commits

Author SHA1 Message Date
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
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
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
Hossein Mehrabi
6443df092f use widget.View.SetText to print 2018-06-03 10:53:26 +04:30
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
430ade3fe5 Conform ldflag names to those that goreleaser uses 2018-05-17 14:23:41 -07:00
Chris Cummer
89497561bc SystemInfo struct is now master of its own domain 2018-05-14 21:04:37 -07:00
Chris Cummer
06702835f3 Closes #32. OS version and build info into System module 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
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
bef57d799b Rudimentary modal showing up for Todo on 'e' 2018-04-27 15:48:54 -07:00
Chris Cummer
7500a4031d Added the System widget with basic build info 2018-04-24 09:54:53 -07:00