Page 1 of 1

Shift+click to expand Text Viewer selection

Posted: 21 Dec 2015, 12:00
by mdruiter
To copy a part of a text document, I have to select it in one go, dragging the mouse all the way down. Other programs like browsers support Shift+click to expand an already selected region up to the clicked position. It would be great if the Salamander Text Viewer would allow that as well.

Re: Shift+click to expand Text Viewer selection

Posted: 21 Dec 2015, 16:24
by SvA
Yes, I second that. Many times I had been waiting with the mouse button pressed, until the viewer scrolled to the end or the beginning in order to select a larger portion of a document. This, however only works in fairly short documents where you can find the other end visually. In other instances I had to switch to hex view, take a note of the positions and use an external tool to copy the byte region I was interested in.

mdruiter's requst would solve many of those instances, though some others that involve using search to find the other end, still was left out and needed bookmarks, selections that are independent of search results, or some other scheme.

Yet another thing I missed many times is selecting a word by double clicking it ...

Re: Shift+click to expand Text Viewer selection

Posted: 07 Jan 2016, 11:26
by mdruiter
While at it, could Shift+Ctrl+End please extend the selection up till the end of the file (and Shift+Ctrl+Home from the start)? :idea:
All cursor keys used with Shift could change the selection, then I would not even need to use the mouse! Except to select the start of the selection.

Also text selection in the File Comparator plugin is not optimal.

Re: Shift+click to expand Text Viewer selection

Posted: 05 Jul 2016, 18:01
by Ether
The File Comparator has a Show caret option, which is probably what you want. Internal Viewer would benefit from this feature as well.

Re: Shift+click to expand Text Viewer selection

Posted: 06 Jul 2016, 09:33
by mdruiter
Show caret would indeed help before Shift+Ctrl+End etc. But Shift+click would be nice regardless.

Re: Shift+click to expand Text Viewer selection

Posted: 28 Nov 2016, 13:41
by Petr Solin
We have supported Shift+click to extend selection in internal viewer in text mode. We have also supported Shift+arrows, End, Home, Ctrl+Home, and Ctrl+End to extend selection. Show caret command not implemented yet, we will wait for other requests. It will be released probably this week with version 3.08.

Hint: You can also scroll the view using keyboard while dragging a block with left mouse button: try Home, End, Page Down, and Page Up, and also arrows, Ctrl+Left, and Ctrl+Right keys. I have added this hint to help. To say the true I have already forgotten that these keys work during dragging a block. I have just met it now when working on extending block with Shift key.

Double click left mouse to select whole word together with Ctrl+double click left mouse to select whole line in text mode already works. If it does not work in some configuration, please let me know.

Re: Shift+click to expand Text Viewer selection

Posted: 30 Nov 2016, 17:05
by mdruiter
Petr Solin wrote:We have supported Shift+click to extend selection in internal viewer in text mode. We have also supported Shift+arrows, End, Home, Ctrl+Home, and Ctrl+End to extend selection.
Thanks, I'm looking forward to it.
Petr Solin wrote:Hint: You can also scroll the view using keyboard while dragging a block with left mouse button: try Home, End, Page Down, and Page Up, and also arrows, Ctrl+Left, and Ctrl+Right keys.
Aha! That is a great tip. This functionality should be better advertised...