Skip to content

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

Open
@kiryph

Description

@kiryph

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions