4 ms·
I like this idea. I feel like today’s landscape may be making it somewhat irrelevant, everyone seems to be moving to automated lint-formatting, but I might have
by dahart 8y ago
I like this idea. I feel like today’s landscape may be making it somewhat irrelevant, everyone seems to be moving to automated lint-formatting, but I might have to try this.
Having written a code auto-alignment tool, I like the idea of elastic tabstops because it makes the alignment explicit. Thinking of it as a grid and having an explicit separator between columns would be nice, it gives me control over what gets aligned. Auto alignment is tricky and always has corner cases as well as missing features, things you wish it would align but it doesn’t.
I don’t buy the argument mentioned several times here that elastic tab stops have to degrade gracefully; tabs already don’t do that. From my point of view, one of the larger downsides is it wouldn’t help with situations that call for right-align, e.g. numbers. And since formatting requires look ahead, I’m curious if the command line tool (“etst”) is enough to make command line workflows good, e.g., ssh, grep, sed, perl, etc.