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

Allowing passing of ranges directly to formatting tools #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 2, 2019

  1. Allowing passing of ranges directly to formatting tools

    Neoformat supports formatting only part of a file, but it just passes
    that chunk to formatting tools. A lot of tools need the context of the
    surrounding lines, but support passing the requested range as an
    argument.
    
    This commit adds support for ranges by allowing certain variables to be
    substituted in the arguments. In that case the 'range_mode' option should be
    to indicate that the tool itself will handle the range.
    
    Most tools use range_mode 1, which means that the tool takes the
    entire buffer and a range as input, and outputs the entire buffer with
    only that range formatted.
    
    Some tools use range_mode 2, which means that the tool takes same input
    as range_mode 1, but outputs only the range that was formatted.
    bzvl committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    a651938 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2019

  1. Fixed unit tests

    bzvl committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    0cde724 View commit details
    Browse the repository at this point in the history