-
Notifications
You must be signed in to change notification settings - Fork 32
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
feature: exclusive operator #49
Comments
I added a new option You can set it to |
Thanks, but it seems that the snippet in my original post no longer works (it doesn't seem to do anything). A plain |
Damn, you're right. On it |
Fixed now. Sorry about that :) |
Thanks, it's working! But with backward jumps, it seems that it always jumps to the beginning of the match. For example, using the following config: require("flash").jump(
search = { forward = false, wrap = false, multi_window = false },
jump = { inclusive = false }
) With the following text, the cursor at
While using the - The quick brown fox jumped over the lazy dog.
+ The quick brown fox jump the lazy dog. What I expect: - The quick brown fox jumped over the lazy dog.
+ The quick brown fox jumped the lazy dog. |
You should add |
Thank you! With this, |
Sorry for being a party pooper, but it turns out that it's still not working quite right. require("flash").jump {
search = { forward = false, wrap = false, multi_window = false },
jump = { inclusive = false, pos = "end" },
} Doesn't exclude the last character of the match. |
I added You also probably still want to use So you should change it to: require("flash").jump {
search = { forward = false, wrap = false, multi_window = false },
jump = { pos = "end" },
} This should now work as expected. Let me know if it does! :) |
Thanks, it's working perfectly! |
Did you check the docs?
Is your feature request related to a problem? Please describe.
When doing directional jumps in an operator pending mode, like this:
You sometimes want to exclude the target from the operation, similar to operations like
dtw
Describe the solution you'd like
An option to make the jump behave like an exclusive operator.
Describe alternatives you've considered
Currently, I don't think there's an option that can simulate this behavior.
Additional context
No response
The text was updated successfully, but these errors were encountered: