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

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

Comments

Projects
None yet
1 participant

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