Is it possible to do a shift+click on an element with Vimium-C ? #1045
-
By default, Jira doesn't load all of the comments for an issue. So, a workaround for that I've used is to map a key in Vimium-C to click on the load older comments bar/button automatically. When I press the key it finds the element and then clicks on it. By using, this workaround it was a single keystroke to click the element and list all comments. map c LinkHints.click direct="element" match=".show-more-comments" In the new Jira 9.x, the element names have changed a bit and the match is now this: This works, but it only displays 10 comments at a time. If you do a shift-click on the element, it will display all comments. Is it possible to do this? Another way to accomplish this would be by performing the action that the click on the button bar does. The click action invokes a URL to display the additional comments. There are two URLs: the first only loads 10 comments, the second loads all comments. Is it possible to click on the element and invoke its second URL at the same time? This is HTML associated with the "load comment bar".
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
A 3rd option would be to keep doing the click on the element until it no longer exists in the page after Jira has expanded all the comments. |
Beta Was this translation helpful? Give feedback.
-
Um,
BTW, I'm not sure why you used
|
Beta Was this translation helpful? Give feedback.
-
mode=37 was a mistake. Thanks for getting back and the explanation. I'll give it a try!! Appreciate the help; Vimium-C is great! |
Beta Was this translation helpful? Give feedback.
-
This mapping works for me. map C LinkHints.click direct="element" match=".show-more-comment-tabpanel" newtab="window" However, if it try to simplify runKey to just run it doesn't work. run c C,800wait,C But, using runkey is good enough for me. Thanks, again. |
Beta Was this translation helpful? Give feedback.
Um,
LinkHints.activate
has no parameter to "always do a click with Shift=pressed, but there's indeed a parameter to achieve this effect "most of time" - try
newtab="window"`:BTW, I'm not sure why you used
mode=37
.37
is toopen an image
, but in this case the target is a standard buttonmode: number
is not suggested although it does work now. Instead, its official usage ismode: string
, and allowed values are:vimium-c/background/key_mappings.ts
Lines 828 to 847 in 64ff777