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

43 Commits

Author SHA1 Message Date
Chris Cummer
5e13618813 Close #168. Modal dialogs now center onscreen properly 2018-06-09 08:52:32 -07:00
Bryan Austin
e2c1f793bf Fix newline in git module repo names breaking display
After setting up the git module with multiple repos and switching
between them, I observed some graphical wonkiness in the display:

https://i.imgur.com/R3e7eij.png

After adding some log statements, I tracked it down to the
`GitRepo.Repository` field having a newline in it after it's set
from a command execution's stdout. This change strips the
repository path of spaces when assigning to the `Repository` field,
which fixes the display issues.
2018-06-08 14:44: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
Hossein Mehrabi
8f3f5e9120 use widget.View.SetText to print 2018-06-03 08:12:15 -07:00
Wilq
66c14a666d added git pull and checkout commands 2018-06-02 16:52:29 +02: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
33278dcc47 Adds the Github module to the documentation 2018-05-14 21:04:37 -07:00
Chris Cummer
a757a01963 Additional data into documentation 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
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
5e186323e0 A lot of code cleanup for Clocks and Git 2018-04-18 16:57:36 -07:00
Chris Cummer
9ec1b516c1 Handle cases in which there is no git repo data 2018-04-18 11:43:30 -07:00
Chris Cummer
6bf98c6a03 Multi-Git, now with tick marks 2018-04-18 09:09:24 -07:00
Chris Cummer
44ccf8e55a First pass at multi-Git repos. Works; no tick marks yet 2018-04-18 09:07:41 -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
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
42734a502c Widget text spacing 2018-04-06 21:55:44 -07:00
Chris Cummer
59676ca344 Git title display improvements 2018-04-06 14:16:34 -07:00
Chris Cummer
fb637700b1 Displays Github review requests and PRs 2018-04-05 21:16:55 -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
3ebb299350 Display none when no git files 2018-04-02 22:12:05 -07:00
Chris Cummer
7555ae3b5c Border color on the widgets 2018-04-02 22:09:01 -07:00
Chris Cummer
945dfc8db7 Display OpsGenie oncall data for one specific schedule 2018-04-02 21:41:46 -07:00
Chris Cummer
202d5ca95e Increased the git refresh interval 2018-04-02 08:45:56 -07:00
Chris Cummer
0b8a063487 ExecuteCommand() moved into the utils dumping ground 2018-04-02 08:36:43 -07:00
Chris Cummer
278bf583c4 Remove the common refresher() code into BaseWidget 2018-04-02 04:38:55 -07:00
Chris Cummer
c856ea3c82 Add OpsGenie frame and some layout modifications 2018-04-01 21:39:56 -07:00
Chris Cummer
a79588e9cc Git now displays changed files and last ten commits 2018-04-01 20:57:55 -07:00
Chris Cummer
e1e8af5e38 Display current git repo and branch 2018-03-31 23:44:27 -07:00
Chris Cummer
f6e7a2c030 WIP Git widget 2018-03-31 20:04:09 -07:00
Chris Cummer
d3cd19fd8f Starting a git implementation 2018-03-31 14:01:09 -07:00