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

Manual missing for GTabularize #43

Open
19000 opened this issue Sep 30, 2015 · 0 comments
Open

Manual missing for GTabularize #43

19000 opened this issue Sep 30, 2015 · 0 comments

Comments

@19000
Copy link

19000 commented Sep 30, 2015

It took me a while to find this functionality in the source: GTabularize.
Why not include it in the doc?

GTabularize /pattern[/format] {{{2
GTabularize name

Align text on only matching lines, either using the given pattern, or the
command associated with the given name. Mnemonically, this is similar to
the :global command, which takes some action on all rows matching a pattern
in a range. This command is different from normal :Tabularize in 3 ways:

  1. If a line in the range does not match the pattern, it will be left
    unchanged, and not in any way affect the outcome of other lines in the
    range (at least, normally - but Pipelines can and will still look at
    non-matching rows unless they are specifically written to be aware of
    tabular#DoGTabularize() and handle it appropriately).
  2. No automatic range determination - :Tabularize automatically expands
    a single-line range (or a call with no range) to include all adjacent
    matching lines. That behavior does not make sense for this command.
  3. If called without a range, it will act on all lines in the buffer (like
    :global) rather than only a single line
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