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

Default range % instead of current line similar to :global #120

Open
kiryph opened this issue Aug 31, 2018 · 0 comments
Open

Default range % instead of current line similar to :global #120

kiryph opened this issue Aug 31, 2018 · 0 comments

Comments

@kiryph
Copy link

kiryph commented Aug 31, 2018

I think the situation that you want to use :EasyAlign only on the current line are quite rare and
can be still done by :.EasyAlign.

An advanced behavior has been builtin into the plugin Tabular.vim:
:Tabularize tries to automatically detect the most sensible line range:

[...] instead of requiring a range, Tabularize tries to figure out what you want to
happen. Since it knows that you want to act on lines matching a comma, it
will look upwards and downwards for lines around the current line that match a
comma, and consider all contiguous lines matching the pattern to be the range
to be acted upon. You can always override this by specifying a range, though.

Would this be feasible for easyalign as well?

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

1 participant