Live data from Hacker News

tabIndent.js - A JavaScript Library For Tab-Enabled TextAreas

julianlam.github.com

11–20 of 34 posts

Re: tabIndent.js - A JavaScript Library For Tab-Enabled TextAreas

#13
post #9
post #6

This is awesome. I'd love if the developer would add (even if it were optional) Command+[ / Command+] functionality to indent multiple lines at a time.

Windows/Emacs user here. What does these shortcuts do ?

If you have a block of code/text selected, Cmd+[ and Cmd+] shift the entire textblock one tabindent to the left or right, maintaining the relative indent level of each individual line.

Re: tabIndent.js - A JavaScript Library For Tab-Enabled TextAreas

#14
post #6

This is awesome. I'd love if the developer would add (even if it were optional) Command+[ / Command+] functionality to indent multiple lines at a time.

multiple lines indentation at a time is supported. You have to select multiple lines and press tab (to indent) or shift+tab (to remove indentation).

I like the fact that if you select multiple lines with one line partially selected, it works as expected (selecting whole of the partially selected line)

Re: tabIndent.js - A JavaScript Library For Tab-Enabled TextAreas

#15
Very interesting. I recently explored several different projects for tab-enabled textareas and currently use https://github.com/wjbryant/taboverride.

One interesting thing about most implementations of tabs in textareas is that the insertion of a tab typically breaks the browser undo/redo stack for the textarea. This guy implemented it correctly though as mentioned in the bug filed on tabIndent.js: http://www.reddit.com/r/javascript/comments/13tfpf/burned_th...

Re: tabIndent.js - A JavaScript Library For Tab-Enabled TextAreas

#20
post #18

Seeing as delete will remove a tab I think shift-tab would be better used for the normal behaviour, take you to the next input.

Shift-tab generally has the meaning of "untab" already. Overloading it to mean "move to next input" would be very confusing for those of us expecting the old behaviour, and not at all discoverable for anyone else.
Post reply on HN