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

38 Commits

Author SHA1 Message Date
Chris Cummer
a48d15079a Remove RefreshedAt from TextWidget
This attribute is used for absolutely nothing. It doesn't need to exist.
2018-10-11 17:12:29 -04:00
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
Anand Sudhir Prayaga
dccf04a27a Make Jira widget scrollable
Adds ability to scroll through the list of issues when they don't fit into the view
2018-08-28 18:00:19 +02:00
Anand Sudhir Prayaga
568276343c Make the travisci module interactive
* Add ability to select and open builds
* Add commit message (oneline style) to text displayed in the widget
* Add documentation on the new keyboard shortcuts
* Cleanup some duplicate code
2018-08-03 15:42:24 +02: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
e5a66edf61 Closes #268. Jira now supports help modal 2018-08-01 15:05:43 -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
0cdfe8d785 Jira highlight spans entire width of widget 2018-07-18 10:11:12 -07:00
Chris Cummer
1be970eaec List highlights span entire widget width 2018-07-18 10:06:28 -07:00
Bryan Austin
7b7971d6bf Make Jira module list interactable
Using the todo module as a template, this change adds interactivity
to the Jira module to allow selecting individual issues and opening
them in a web browser.

The j and k keys (or arrow keys) move up and down, and pressing
enter will open the URL for a given issue in the system's default
URL handler.
2018-07-02 17:20:39 -07:00
Chris Cummer
1a898b05e3 Remove complexity from a lot of string display statements 2018-06-21 19:32:32 -07:00
Chris Cummer
d74c4ebf2d Clean up some colourizing switch statements 2018-06-16 15:07:40 -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
Bryan Austin
a70a0cd41e Allow use of project list in Jira module config
For my own use case (and anyone in a similar situation), the Jira
module is more useful if I can specify a list of projects to
display issues from, rather than no project (which selects all
projects) or one specific project.

New supported syntax:
`  project: ["PROJA", "PROJB"]`

If this is merged, documentation for the Jira module should be
updated accordingly. (Sorry, I would have done this myself but
I'm not sure what the right place is - when grepping I find
multiple places in the repo containing documentation strings
and I'm not sure what the "master" location is)

Specifying a single project (or no project) is still supported -
behavior shouldn't change for anyone who doesn't change their
config.
2018-06-08 12:18:27 -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
Sherod Taylor
9b70236bbb add optional more advanced jql queries and working usernames 2018-05-31 18:46:52 +01: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
0ff65bbd5c Row color as common function 2018-05-14 21:04:37 -07:00
Chris Cummer
0d3b663642 Closes #40. Text color config into Jira widget 2018-05-14 21:04:37 -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
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
3a3efbd59f Flexible 1on1 lookup (need to move this sort of thing into Config) 2018-04-13 13:50:12 -07:00
Chris Cummer
31e17da358 Hack to fix a unicode rendering issue in iTerm 2018-04-12 18:18:54 -07:00
Chris Cummer
dd170c0ab3 Rough JIRA implementation. Currently gets all issues assigned to user 2018-04-12 10:14:23 -07:00
Chris Cummer
8d131907a2 WIP 2018-04-12 08:58:23 -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
71f8fc789f A ton of cleanup around how config is handled and go rountines are executed 2018-04-04 18:02:59 -07:00
Chris Cummer
c3f1d7ee36 Configuration used throughout the app 2018-04-04 15:38:29 -07:00
Chris Cummer
7555ae3b5c Border color on the widgets 2018-04-02 22:09:01 -07:00
Chris Cummer
278bf583c4 Remove the common refresher() code into BaseWidget 2018-04-02 04:38:55 -07:00
Chris Cummer
35e7fa0128 Add JIRA frame 2018-04-01 22:49:38 -07:00