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

Don't wrap a quotation mark/period/etc to the next line by itself #72

Open
RheingoldRiver opened this issue Dec 11, 2019 · 3 comments
Open

Comments

@RheingoldRiver
Copy link

I want punctuation marks like quotations, etc, to be considered part of the previous word and bring the entire word with it if forced to wrap to the next line. Is this possible to do? Can this plugin do it? If not then could it be implemented? I've tried searching for this as an issue but I can't find any mention of it really.

In plaintext wrapping happens as I want it to, but in any syntax the quote is treated as no longer part of the word.

@ehuss
Copy link
Owner

ehuss commented Dec 11, 2019

Can you please include an example?

@RheingoldRiver
Copy link
Author

Here's plaintext:
image
This is how I want it to behave (quote wrapping brings entire word to the next line)

Now all I do is change the SH from nothing to Lua:
image
And now the quote is by itself on the next line

It does the wrong thing in the other direction too:
image
So the quote is left by itself on a line. This is especially frustrating because now I'll be worried I have unintentional whitespace after the quote.

@RheingoldRiver
Copy link
Author

Sorry one other thing to add - I know the setting word_separators exists - modifying this doesn't affect wrapping at all from what I can tell, but even if it did, I would prefer this setting to be independent from punctuation wrapping, because double-clicking a word or ctrl+left arrow etc should not include punctuation marks as part of the word.

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