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

Enter pattern ' causes adding an extra space between ( and ' #9

Open
nyngwang opened this issue Oct 13, 2022 · 2 comments
Open

Enter pattern ' causes adding an extra space between ( and ' #9

nyngwang opened this issue Oct 13, 2022 · 2 comments

Comments

@nyngwang
Copy link

As title, see:

bug1.mov
@Vonr
Copy link
Owner

Vonr commented Oct 13, 2022

This is unfortunate behavious as usually you want to leave a space for what youre aligning (think '=', 'end', 'function')

Maybe it would be sufficient to add an option to disable adding that space?

@nyngwang
Copy link
Author

nyngwang commented Oct 17, 2022

is it possible to change the algorithm (I haven't read your code carefully) so that "don't add a space if any starting-char is not the leading-char of a given word"? So aligning these lines:

foo('s', ...)
foo( 'd', ...)
foo('f', ...)

will result in: (since only the second line where ' is the leading-char of word 'd',)

foo('s', ...)
foo('d', ...)
foo('f', ...)

not (this is the current behavior):

foo( 's', ...)
foo( 'd', ...)
foo( 'f', ...)

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