Page 1 of 1

preserve tabs when change indent of block

Posted: Sun May 01, 2016 9:55 pm
by kevinHealy
TextPad has had a long standing bug in its block indent editing.

Suppose that you select a block of text, and either hit the tab key to indent it more, or hit shift-tab to decrease its indent.

That works for the displayed text.

But suppose that inside the block you have lines that have tab chars that go up to the existing indent level. Then after you do a block indent edit, these lines get all of their tabs removed. I hate that. I want the block edit to be simple and to always just add or remove a tab char uniformly to every line in the block. I do not TextPad to think that it is helping me out by removing the tabs on my blank lines.

IntelliJ's editor, for example, behaves correctly (block indent edits preserve tabs).

I would love to see this behavior be fixed.