[TxMt] Shift Right strips whitespace...
Charilaos Skiadas
skiadas at hanover.edu
Mon Jan 22 23:03:56 UTC 2007
On Jan 22, 2007, at 5:40 PM, Gerd Knops wrote:
> Hi,
>
> It's been bugging me for a while: "Shift Right" will leave all
> lines consisting only of whitespace completely blank, even removing
> existing whitespace.
>
This hasn't been my experience. I just tried it right now, and
whitespace lines stay in place as they are, nothing removed from
them. (Though I do find it surprising that shifting left does remove
some whitespace from those lines, I would have expected the shift
left-shift right behavior to agree.)
> That really bugged me, so I tried to write my own "Shift Right"
> command to replace the built-in one. But it seems that the lines my
> code gets are already stripped of 'trailing whitespace'.
Is this a TextMate command? I just created a command with input
selection and output insert as text, and with text the following, and
it read the whitespace just fine.
#!/usr/bin/env ruby
require 'pp'
pp(STDIN.read)
> Any idea how I can tell TM to leave my whitespace alone?
>
> Thanks
>
> Gerd
Haris
More information about the textmate
mailing list