From c085745f512aba02d01990d2ac86cb78861aa10d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 31 Oct 2014 15:08:56 -0400 Subject: Change rectangular selection mouse modifier back to Alt on Linux. Enabled tapping Alt key during mouse selection to convert to rectangular selection and mentioned this in the manual. --- doc/manual.md | 17 +++++++---------- properties.lua | 7 ++----- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/doc/manual.md b/doc/manual.md index 09f4577a..4684449e 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -615,22 +615,19 @@ position. Textadept mirrors any typed text at each selection. Rectangular selections are a more structured form of multiple selections. A rectangular selection spanning multiple lines allows typing on each line. Holding `Alt+Shift` (`⌥⇧` on Mac OSX | `M-S-` in curses) and then pressing the -arrow keys creates a rectangular selection. Holding the `Alt` modifier key -(`Super` on Linux, and `Ctrl+Alt` in curses) and then clicking and dragging the -mouse cursor also creates a rectangular selection. +arrow keys creates a rectangular selection. Holding the `Alt` modifier key and +then clicking and dragging the mouse cursor also creates a rectangular +selection. ![Rectangular Selection](images/rectangularselection.png)      ![Rectangular Edit](images/rectangularselection2.png) Note: In some Linux environments, the window manager consumes `Alt+Shift+Arrow` -combinations so Textadept may need reconfiguring. Also, Textadept uses -`Super+Mouse` because `Alt+Mouse` generally moves windows. (Your window manager -usually defines the `Super` modifier key as the left "Windows" key.) If you -prefer to use `Alt`, change [`buffer.rectangular_selection_modifier`][] in your -[preferences](#Buffer.Settings). - -[`buffer.rectangular_selection_modifier`]: api.html#buffer.rectangular_selection_modifier +combinations, so Textadept's keys may need reconfiguring. Similarly, the window +manager may also consume `Alt+Mouse` in order to move windows. In that case, a +normal text selection may be changed into a rectangular selection by tapping the +`Alt` modifier key. ### Select to Matching Brace diff --git a/properties.lua b/properties.lua index 55ad116d..020c1a03 100644 --- a/properties.lua +++ b/properties.lua @@ -8,11 +8,8 @@ buffer.additional_selection_typing = true --buffer.multi_paste = buffer.MULTIPASTE_EACH --buffer.virtual_space_options = buffer.VS_RECTANGULARSELECTION + -- buffer.VS_USERACCESSIBLE -if not CURSES then - -- Note: Always Ctrl+Alt on non-Win32 curses and always Alt on Win32 curses. - buffer.rectangular_selection_modifier = (WIN32 or OSX) and buffer.MOD_ALT or - buffer.MOD_SUPER -end +buffer.rectangular_selection_modifier = buffer.MOD_ALT +buffer.mouse_selection_rectangular_switch = true --buffer.additional_carets_blink = false --buffer.additional_carets_visible = false -- cgit v1.2.3