[TxMt] Selecting newline characters

Ryan Schmidt textmate-2004 at ryandesign.com
Wed Dec 22 12:19:13 UTC 2004


On 22.12.2004, at 11:40, Jeroen van der Ham wrote:

> On 20-12-2004 16:56, Allan Odgaard wrote:
>> On Dec 20, 2004, at 11:46, Jeroen van der Ham wrote:
>>> At the moment it is virtually impossible drag-select some text and 
>>> the newline character of a line that is followed by a non-empty 
>>> line.
>> Drag the cursor one line down and to the left (before the next line 
>> starts), this should then include the newline w/o selecting anything 
>> from the next line).
>
> This is not really an intuitive solution: I expect the newline 
> character to be at the end of a line, not before column 0 of the next 
> line.

Jeroen,

I think your expectations don't match Macintosh tradition. All Mac apps 
(with AFAIK the sole except of Microsoft Word) work the way Allan 
describes. I've used Macs for 14 years; TextMate works the way I expect 
it to in this regard.

Some suggestions I can offer you:

If you want to select a whole line, including the newline at the end, 
do not drag from the start of the line to the end of that line. Drag 
instead from the start of the line to the start of the next line. This 
is a much shorter mouse movement anyway.

If you want to start selecting in the middle of the line and would like 
to move the mouse to the end of the line to accomplish this, instead of 
moving to the beginning of the next line, you can do so, and the 
newline will not be selected. Then, to select the newline as well, you 
can press Shift-Right Arrow.




More information about the textmate mailing list