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

Question about targeting areas to align #81

Open
diVineProportion opened this issue May 19, 2018 · 3 comments
Open

Question about targeting areas to align #81

diVineProportion opened this issue May 19, 2018 · 3 comments

Comments

@diVineProportion
Copy link

diVineProportion commented May 19, 2018

I'm curious if one is able to align by, say comma, but only align to the commas in the section defined by another regex. So i can perform aligntab on the whole document, but have it align in sections

Figured an example would best express my question

-------------------------------------------------------------------------------
actions\systemStats
-------------------------------------------------------------------------------
    {name = "foobarfoobarfoobarfoobarfoobar", type = "text", def="event_name" } 
    {name = "barfoobarfoobarfoobar", type = "text", def="event_name" } 

-------------------------------------------------------------------------------
actions\tacticalMapControl
-------------------------------------------------------------------------------
    {name = "follow_player", type="bool", def = false}
    {name = "use_scale", type = "bool", def = false}
    {name = "scale", type = "point2", def = [5000, 5000]}

So idea output would be

actions\systemStats
-------------------------------------------------------------------------------
    {name = "foobarfoobarfoobarfoobarfoobar" , type = "text" , def="event_name" }
    {name = "barfoobarfoobarfoobar"          , type = "text" , def="event_name" }
-------------------------------------------------------------------------------
actions\tacticalMapControl
-------------------------------------------------------------------------------
    {name = "follow_player" , type="bool"     , def = false}
    {name = "use_scale"     , type = "bool"   , def = false}
    {name = "scale"         , type = "point2" , def = [5000  , 5000]}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@randy3k
Copy link
Owner

randy3k commented May 19, 2018

You could either use the automatic line detection or select the region to align.

@diVineProportion
Copy link
Author

too many sections to do it select them one at a time. Is automatic line detection smart detection?

@randy3k
Copy link
Owner

randy3k commented May 20, 2018

yes, then there is no better option now.

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

2 participants