Re: [code] [textadept] is there a way to select a rectangle between the anchor and another point?

From: Mitchell <m.att.foicica.com>
Date: Sat, 13 Apr 2013 00:50:21 -0400 (EDT)

Pete,

On Fri, 12 Apr 2013, Pete Kazmier wrote:

> Trying to emulate emacs-style rectangle commands. Is there a buffer
> function to select_rectangle(pos_a, pos_b)? I'm trying to emulate
> emacs-style rectangle commands where you press ctl-space and then move
> somewhere else to execute a command which will take effect on the
> rectangular region.
>
> I'm sure I could use the new mode feature in key bindings to swap all
> normal navigational movements to their corresponding rect versions when a
> user presses ctl-space (like emacs set-mark command), but I was hoping to
> be able to use the same key binding to simply record any specific position
> in the buffer as I have defined bindings to cut/copy between the current
> pos and saved position (I call set_sel before invoking cut/copy). It
> doesn't look like scintilla supports a corresponding set_rect_sel unless
> I'm missing something.

"buffer.selection_mode = 1" is supposed to do what you want, but it seems
like there is a Scintilla bug that prevents this...

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 13 Apr 2013 - 00:50:21 EDT

This archive was generated by hypermail 2.2.0 : Sat 13 Apr 2013 - 06:45:02 EDT