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

33 Commits

Author SHA1 Message Date
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
197a908f52 Minor improvement to New Relic display 2018-08-15 13:25:29 -07:00
Chris Cummer
a1c528e4d5 Clean up the NewRelic module's API credentials loading 2018-07-31 14:30:55 -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
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
8278d6f54b Colourize the log file output 2018-06-16 14:19:16 -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
Lasantha Kularatne
6a72e8c182
NewRelic Module - Fixing out of bound error 2018-05-31 13:35:47 -05: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
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
66f11e8b8b Support for multiple Github repos 2018-04-19 16:10:24 -07:00
Chris Cummer
3175b8d9cc Quick run through to add some documentation comments 2018-04-17 15:55:36 -07:00
Chris Cummer
693a04b5e1 Removed a bunch of common boilerplate code from widget initialization 2018-04-15 13:08:17 -07:00
Chris Cummer
84ecf296a5 RefreshedAt moved to the end of the refresh (because that makes more sense, doesn't it?) 2018-04-13 16:14:57 -07:00
Chris Cummer
31e17da358 Hack to fix a unicode rendering issue in iTerm 2018-04-12 18:18:54 -07:00
Chris Cummer
0472e8edec Remove some panics, replace with error percolation 2018-04-12 08:56:33 -07:00
Chris Cummer
27a267b123 Cleaner config format and added simple_config.yml example 2018-04-10 11:28:48 -07:00
Chris Cummer
5637adf601 Handle NewRelic connectivity errors 2018-04-10 08:56:44 -07:00
Chris Cummer
7072820967 Column and row definitions into the config file. No need to compile to change sizes 2018-04-09 13:19:16 -07:00
Chris Cummer
cc4b5714f0 Add DNS to Security 2018-04-09 10:19:12 -07:00
Chris Cummer
aa658db210 Handle offline scenarios for OpsGenie 2018-04-09 09:48:45 -07:00
Chris Cummer
01aab4cc53 wtf.Position into its own file 2018-04-08 05:04:33 -07:00
Chris Cummer
b216005385 Add a pseudo-id for deploys 2018-04-07 23:46:52 -07:00
Chris Cummer
79bc8216d6 Don't display disabled widgets 2018-04-07 14:36:13 -07:00
Chris Cummer
ae13d52665 Enabled half-measure: widgets won't run if disabled (still need to not display) 2018-04-07 14:20:21 -07:00
Chris Cummer
b4bc6d4509 Remove a ton of duplication around TextView widget creation 2018-04-07 13:55:08 -07:00
Chris Cummer
52d57f1df4 Remove the space 2018-04-06 21:58:33 -07:00
Chris Cummer
42734a502c Widget text spacing 2018-04-06 21:55:44 -07:00
Chris Cummer
f1590e29f8 Deployments with timezone 2018-04-06 21:32:30 -07:00
Chris Cummer
6303acc9a4 Basic New Relic deploy info 2018-04-06 21:14:19 -07:00