summaryrefslogtreecommitdiff
path: root/gerrit-widget
diff options
context:
space:
mode:
Diffstat (limited to 'gerrit-widget')
-rw-r--r--gerrit-widget/README.md4
-rw-r--r--gerrit-widget/gerrit.lua2
2 files changed, 4 insertions, 2 deletions
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 <review number>`.
+
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)
)