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

Restrict automatic region search to lines with same indent as current #30

Open
toupeira opened this issue Feb 12, 2014 · 0 comments
Open

Comments

@toupeira
Copy link

Let's say you have a nested Ruby hash:

    :foo => {
      :one => 1,
      :two => 2,
      :three => 3,
    }

If your cursor is on the inner hash and you want to align on the =>, Tabular will also align the :foo line on the outer hash. It would be great if the Tabular command would accept a parameter to restrict this search to lines that have the same indent as the current one (according to indent()), without having to select/specify an explicit region. Or maybe there is a way to do this already and I missed it in the docs?

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