From ba488c77c2d549d008e397f533fe990f6d6aec4a Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Sat, 23 Nov 2019 22:02:49 -0500 Subject: Rephrase readme of gerrit widget --- gerrit-widget/README.md | 4 +++- gerrit-widget/gerrit.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'gerrit-widget') diff --git a/gerrit-widget/README.md b/gerrit-widget/README.md index a7ed09f..ac226cb 100644 --- a/gerrit-widget/README.md +++ b/gerrit-widget/README.md @@ -4,10 +4,12 @@ It shows number of currently assigned reviews in [Gerrit](https://www.gerritcode ![gerrit_widget](./gerrit_widget.png) - when clicked it shows reviews in a list, if an item of a list is clicked, the review will be opened in the default browser: + when clicked it shows reviews in a list:, if an item of a list is clicked, the review will be opened in the default browser: ![popup](./popup.png) + left click on an item will open review in the default browser, right click will copy the review number, which you can use to checkout this review by running `git-review -d `. + Also, if a new review is assigned to the user, there will be a pop-up: ![new_review](./new_review.png) diff --git a/gerrit-widget/gerrit.lua b/gerrit-widget/gerrit.lua index 0b0ff64..ab30fa3 100644 --- a/gerrit-widget/gerrit.lua +++ b/gerrit-widget/gerrit.lua @@ -177,7 +177,7 @@ local function worker(args) popup.visible = false end), awful.button({}, 3, function() - spawn.with_shell("echo 'git-review -d " .. review._number .."' | xclip -selection clipboard") + spawn.with_shell("echo '" .. review._number .."' | xclip -selection clipboard") popup.visible = false end) ) -- cgit v1.2.3