[OS X TeX] Selecting Textual Part of a Line wo Carriage Return

Ross Moore ross.moore at mq.edu.au
Mon Aug 2 17:59:23 EDT 2010

On 03/08/2010, at 7:37 AM, Alain Schremmer wrote:

> On Aug 2, 2010, at 5:13 PM, Herbert Schulz wrote:
>> Click to the left of the starting point and then Shift-Cmd-Right Arrow will select to the end of the line but not include the newline.
> Neat but forces me to let go of the mouse ... and I will be doing this zillions of time for the next few days.

Click at one end, hold down the mouse button while dragging to the other.
That's how to do it with one hand that does not leave the mouse.
that was one of Peter' suggestions.
(This is what I usually do with a trackpad, rather than a mouse.)

If you have 2 hands free, then do it another way.
Click at one end (releasing), hold down the shift key, 
then click at the other end.

Arrow keys can be used instead, after the first click 
 --- this is basically how we used to do it BM 
(before the mouse was invented)!

On an iPad you can do a 2-finger click on the tablet.
This selects a few words and gives you little extension bars
which you drag until the selection is exactly what you want.
If you have a really modern Mac, then this might even work 
using your trackpad or 2-finger sensitive mouse.

> Where can I find how to define "option triple clicks" not to include the newline without screwing up everything.

You could just triple click, cut, then type the newline back in.
After pasting elsewhere, backspace out the newline.

However, this might not be suitable when the newline carries 
extra meaning, such as a "paragraph style" in a $Word .doc .
Presumably there is such a problem, else this is what you would 
be doing already.

> Neither TexShop Help's Plist Files nor Redifining Keyboard Menu Shortcuts seem to address this.
> Hopeful regards
> --schremmer

Yet another way is to write a regular expression match 
in a smart editor, such as Vim, Fraise, Emacs, ... 
Then use it's "Find" feature to match the pattern, 
and handle the Cut/Paste in whatever way this makes
to be the most convenient.

Hope this helps,


Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-419      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114

More information about the MacOSX-TeX mailing list