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

60 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
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
0a019ff836 Clean up the GitHub module's API credentials loading 2018-07-31 14:30:55 -07:00
Chris Cummer
015d7736db Closes #263. Fix spelling of GitHub in public-facing strings 2018-07-31 10:05: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
3ce6daee71 Fix multiple small issues with widget titles 2018-07-28 17:37:05 -07:00
Bryan Austin
3ee6304e63 Add optional PR status display in Github module
While spamming refresh on a pull request today to see if required
builds finished yet, it occurred to me that it'd be awesome to have
WTF tell me when a PR was ready to be merged. So, here it is! An
icon will now display next to PRs in the "My Pull Requests" section
detailing whether GitHub thinks they can be merged.

This is behind a new, opt-in config flag called "enableStatus",
due to the fact that in order to function, this feature has to hit
the GitHub API individually for each PR in order to get an updated
status check - there's a comment in the code with a link that
explains why (otherwise, `pr.GetMergeableState()` returns an empty
string). For a large number of PRs, this can slow down refreshes a
bit and _might_ even wind up rate limiting you (while testing I had
some instances of GH refusing to return me any repository info,
though it didn't actually give me an error, usually after I had
been spamming it with requests for 30 PRs in a row for a bit). So,
for that reason, use at your own risk (but it's probably fine).

I am not an emoji expert, so suggestions on the display are welcome
if you can think of anything awesome. A lot of the ones I tried
seemed to render funny and mess up spacing.
2018-07-12 18:39:55 -07:00
Chris Cummer
1a898b05e3 Remove complexity from a lot of string display statements 2018-06-21 19:32:32 -07:00
Chris Cummer
55533d1e16
Merge branch 'master' into support-github-enterprise 2018-06-20 10:43:30 -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
Amr Tamimi
39b66071b7
Merge branch 'master' into support-github-enterprise 2018-06-14 11:37:10 +02:00
Andrew
cec100502f Removed unnecessary changes. 2018-06-10 03:47:14 +03:00
Andrew
a558ee948f Reverted names 2018-06-10 03:36:53 +03:00
Andrew
da1ffdd817 Changed name to andrewzolotukhin 2018-06-10 03:15:58 +03:00
Andrew
6288c70156 Returned names of repo 2018-06-10 02:50:16 +03:00
Andrew
77823419b5 Temporary changed username. 2018-06-10 00:16:40 +03: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
Amr Tamimi
337eb607fc fixes 2018-06-03 18:28:19 +02:00
Hossein Mehrabi
6443df092f use widget.View.SetText to print 2018-06-03 10:53:26 +04:30
Amr Tamimi
df97d6c2d3 initial implementation to support github enterprise 2018-06-02 14:56:22 +02:00
Chris Cummer
86d43e9af6 Close #75. Github no longer crashes on network failure 2018-05-30 21:59:35 -07:00
Chris Cummer
04dd3c2e55 Use the native context package 2018-05-28 21:47:26 -07:00
Chris Cummer
3f42dc66b1 Correct path for the context package in GitHub module 2018-05-28 10:34:42 -07:00
Chris Cummer
374173ebea [WTF-59] Closes #59. Github widget now displays some repo stats 2018-05-26 19:24:04 -07:00
Chris Cummer
53e5e5fbbd [WTF-59] Somewhat better seperation of concerns in the Github code 2018-05-26 14:31:09 -07:00
Chris Cummer
6d230a3d70 Apparently I don't know how to spell 'sigil' 2018-05-24 22:05:37 -07:00
Chris Cummer
5f7c3260c1 Now possible to define the characters for use in paging indicators 2018-05-24 09:03:00 -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
5353d6ddf7 Closes #37. Help into Git and Github modules 2018-05-14 21:04:37 -07:00
Chris Cummer
c7ff101e08 Apparently I'm easily confused by comparison operators 2018-05-14 21:04:37 -07:00
Chris Cummer
544d8c8db9 Adds the Gcal and Jira modules to the documentation 2018-05-14 21:04:37 -07:00
Chris Cummer
33278dcc47 Adds the Github module to the documentation 2018-05-14 21:04:37 -07:00
Chris Cummer
6ccdbabec9 WIP Very rudimentary modal showing up 2018-05-03 08:56:15 -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
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
Chris Cummer
67e02bf4f5 Return early, return gracefully 2018-04-20 11:02:13 -07:00
Chris Cummer
84290ffe76 Multi-github now with tick marks 2018-04-19 16:12:30 -07:00
Chris Cummer
66f11e8b8b Support for multiple Github repos 2018-04-19 16:10:24 -07:00
Chris Cummer
5e186323e0 A lot of code cleanup for Clocks and Git 2018-04-18 16:57:36 -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
27a267b123 Cleaner config format and added simple_config.yml example 2018-04-10 11:28:48 -07:00
Chris Cummer
2ef5b9d7ed Cleaner GCal code 2018-04-09 17:36:43 -07:00
Chris Cummer
e8d6d3e49b Simplified Github 2018-04-09 16:39:25 -07:00
Chris Cummer
01aab4cc53 wtf.Position into its own file 2018-04-08 05:04:33 -07:00