billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Feature Request: auto-align values column #8

Closed naturalethic closed 11 years ago

naturalethic commented 11 years ago

You know what would be really great, is if the mode auto-aligned all values. E.g.:

.condition
  position         absolute
  > .presentation
    cursor         move
    position       absolute
    width          212px
    height         74px
    background     inherit
    textarea
      position     absolute
      top          7px
      left         32px
billymoon commented 11 years ago

You could use the elastic-tabstop plugin to more or less achieve this. I don't think this feature is anything to do with stylus really - but more a general need for aligning text into columns

naturalethic commented 11 years ago

Hmm, that plugin forces you to use tab character, which I hate. Oh well, just an idea!

billymoon commented 11 years ago

I am sure that plugin could be adapted to not leave the tab character there if you really hate it. I think it is a neat feature though, as it is able to work as a definitive field separator, removing the necessity for trying to interpret the abstract meaning of whitespace.

Also, there is a plugin that does vertical alignment very well called VAlign. I think that should suit your need: https://github.com/jlong64/sublime_valign

naturalethic commented 11 years ago

Thanks for the tip on that plugin!