parinfer

misha 2018-07-31T16:20:17.000336Z

@shaunlebron check this out http://nickgravgaard.com/elastic-tabstops/ nothing specific, just think you might find it interesting

shaunlebron 2018-07-31T19:43:52.000123Z

@misha thanks, interesting

shaunlebron 2018-07-31T19:45:10.000426Z

> The problem is that we’re using tabs and spaces to format text for aesthetic reasons rather than treating them semantically - tabs are for indenting and aligning text, spaces are for separating keywords.

shaunlebron 2018-07-31T19:51:04.000432Z

so historically, a tab character \t tells the a text editor to insert spaces until the next tabstop, which is a configurable constant for the whole file

shaunlebron 2018-07-31T19:54:50.000403Z

I wonder if there should just be a new standard type of character \T for an elastic tab—to insert spaces until the next elastic tabstop, determined from context rather than configuration

shaunlebron 2018-07-31T20:01:34.000103Z

and maybe editors could ignore all spaces after a \T if they recognize the character, and incompatible editors would just render the spaces and ignore the \T

shaunlebron 2018-07-31T20:03:06.000103Z

anyway, fun to imagine how to make this interesting idea practical