Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating previous actions #67

Closed
bhajneet opened this issue Jul 13, 2016 · 6 comments
Closed

Repeating previous actions #67

bhajneet opened this issue Jul 13, 2016 · 6 comments

Comments

@bhajneet
Copy link

bhajneet commented Jul 13, 2016

Let's say there is a carousel, to advance the carousel you do:

  • F
  • XX

is there any easy way to repeat this action? Such as '.' in vim? The link doesn't change but i need to follow that link multiple times on that page. This happens quite often on different websites. I thought at first "mapkey" would be helpful, would this be the correct route to take? (I would prefer "temporary" mapkeys in a sense, as the second step in following those links can change site to site or after reloading the page).

brookhong added a commit that referenced this issue Jul 13, 2016
@brookhong
Copy link
Owner

Implemented, will be released in next version.

You could try it by loading unpacked extension, after you clone this repository.

Any comments is welcomed.

@brookhong
Copy link
Owner

Released in 0.5.3.

@Madd0g
Copy link

Madd0g commented Nov 17, 2018

I looked at the referenced commit but I can't understand how to use repeat for hints.
If I run sql it doesn't show hint clicks there (oh I'm stupid, sql also gets registered for repeat, so it's messed up because of that).

Also, if I'm not mistaken the repeat just works with hint-letters, not the actual dom element that was clicked? If something is clicked and the dom changes in a major way, wouldn't the hint be different next time (on repeat)?

@vogler
Copy link

vogler commented Apr 24, 2020

How is this supposed to work? I guess it keeps some queue of actions for the current tab?
For me sql somehow always shows <Ctrl-'>... first and . triggers all of the actions. How can I just repeat the last command or clear this queue?

Example for sql:

<Ctrl-'>M → Hints E → Hints Q → Hints E → Hints E → Hints E

@brookhong
Copy link
Owner

The dot . only repeats the actions with multiple key strokes, for example https://github.com/brookhong/Surfingkeys/blob/master/pages/default.js#L266, those actions with only one key stroke are not repeatable with ..

@vogler
Copy link

vogler commented Apr 27, 2020

I'm confused. Following a link has multiple key strokes, e.g. f + hint.
Where is f in the default mappings? I don't see any link-opening commands with repeatIgnore.
It would be nice if @bhajneet initial use case was supported, i.e., follow the same hint with ..
The part you linked now points to

mapkey('B', '#4Go one tab history back', function() {
    RUNTIME("historyTab", {backward: true});
}, {repeatIgnore: true});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants