Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Disable when reading or writing macros #301

Closed
dotwilliamrc opened this issue Aug 9, 2022 · 5 comments
Closed

Disable when reading or writing macros #301

dotwilliamrc opened this issue Aug 9, 2022 · 5 comments

Comments

@dotwilliamrc
Copy link

It would be great if they add an option to disable the plugin when reading or writing macros

@hadronized
Copy link
Owner

Not sure what that means.

@piersolenski
Copy link

You can't play back macros that require user input each time, such as Hop does.

Say I have the following lines:

The quick brown fox jumps over the lazy dog
A totally different sentence for example's sake.

If I want to record a macro to find the 2nd instance of o, I can do with by starting to record the macro with q. Hop is triggered when I hit f according to the setup hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true }). It assigns v to the 2nd o character. Thus the full macro is fov.

However if I play the same macro back on the second line to find the second instance of o, the characters Hop assigns are now e and t, thus the macro fails with the message no remaining sequence starts with v.

@piersolenski
Copy link

A command such as :HopToggle could be useful both for this use case and I imagine many others.

@snuffop
Copy link

snuffop commented Oct 6, 2023

Well it seems now after reading this, having the same issue, would it not be since f and F are set in the keymaps, that one would toggle that? Hop is just called via key map yes?

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

No branches or pull requests

4 participants