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

Change or extend pattern to handle text end with 2 or more punctuations? #78

Open
Penguin-jpg opened this issue Oct 3, 2023 · 2 comments

Comments

@Penguin-jpg
Copy link

Hello, it is a really great plugin, thanks for your work.
I want to extend the pattern so it can handle some cases like:

Currently, it works like this:
|if ||name| |== |"|main|":
|pass|

I want it to work like this:
|if ||name| |== |"|main|":|
|pass|
Is it possible?
Thank you!

@chaoren
Copy link
Owner

chaoren commented Oct 4, 2023

Hi, I'm not sure I understand your request. Could you please elaborate further? By "pattern" do you mean the word definitions or g:wordmotion_spaces? What do you mean by "text end"?

Please use code blocks to format your examples and clearly specify the current behavior and expected behavior, ideally in the format of the examples in the README.

@Penguin-jpg
Copy link
Author

Hi, I'm not sure I understand your request. Could you please elaborate further? By "pattern" do you mean the word definitions or g:wordmotion_spaces? What do you mean by "text end"?

Please use code blocks to format your examples and clearly specify the current behavior and expected behavior, ideally in the format of the examples in the README.

Sorry for causing misunderstandings. The pattern I mean is more like word definition.

Currently, if I encounter a line with 2 or more punctuations at the end of line, "w" moves the cursor like this:

CamelCaseACRONYMWords_underscore1234"""...
w--->w-->w----->w---->w-------->w-->w

If I press "w" again, the cursor will jump to the start of next line.

But I want it to be able to move till the end of the line like this:

CamelCaseACRONYMWords_underscore1234"""...
w--->w-->w----->w---->w-------->w-->w--->w

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

2 participants