1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Move char-class list box out into a new config panel.

This makes space in the Selection panel (at least on Windows; it
wasn't overfull on Unix) to add a new set of config options
controlling the mapping of UI actions to clipboards.

(A possible future advantage of having spare space in this new Words
panel is that there's room to add controls for context-sensitive
special-casing, e.g. I'd quite like ':' to be treated differently when
it appears as part of "http://".)
This commit is contained in:
Simon Tatham 2017-12-16 11:13:31 +00:00
parent 3d9372492d
commit 98fa733a96
2 changed files with 15 additions and 7 deletions

View File

@ -1860,8 +1860,14 @@ void setup_config_box(struct controlbox *b, int midsession,
"Normal", 'n', I(0),
"Rectangular block", 'r', I(1), NULL);
s = ctrl_getset(b, "Window/Selection", "charclass",
"Control the select-one-word-at-a-time mode");
/*
* The Window/Selection/Words panel.
*/
ctrl_settitle(b, "Window/Selection/Words",
"Options controlling word-by-word selection");
s = ctrl_getset(b, "Window/Selection/Words", "charclass",
"Classes of character that group together");
ccd = (struct charclass_data *)
ctrl_alloc(b, sizeof(struct charclass_data));
ccd->listbox = ctrl_listbox(s, "Character classes:", 'e',

View File

@ -1469,14 +1469,16 @@ select a rectangular block. Using the \q{Default selection mode}
control, you can set \i{rectangular selection} as the default, and then
you have to hold down Alt to get the \e{normal} behaviour.
\S{config-charclasses} Configuring \i{word-by-word selection}
\H{config-selection-words} The Words panel
PuTTY will \I{word-by-word selection}select a word at a time in the
terminal window if you \i{double-click} to begin the drag. This panel
allows you to control precisely what is considered to be a word.
\S{config-charclasses} Character classes
\cfg{winhelp-topic}{selection.charclasses}
PuTTY will select a word at a time in the terminal window if you
\i{double-click} to begin the drag. This panel allows you to control
precisely what is considered to be a word.
Each character is given a \e{class}, which is a small number
(typically 0, 1 or 2). PuTTY considers a single word to be any
number of adjacent characters in the same class. So by modifying the