aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-10-31 15:08:56 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-10-31 15:08:56 -0400
commitc085745f512aba02d01990d2ac86cb78861aa10d (patch)
tree955bc5494cec3ff3311bd5c6e2f2fbc3140563de
parentcebd88697dc68ef260185ca1906a84cc55e627d7 (diff)
downloadtextadept-c085745f512aba02d01990d2ac86cb78861aa10d.tar.gz
textadept-c085745f512aba02d01990d2ac86cb78861aa10d.zip
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.
-rw-r--r--doc/manual.md17
-rw-r--r--properties.lua7
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)
&nbsp;&nbsp;&nbsp;&nbsp;
![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