texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

FR: support for multi-selection with double-click

Open mbertucci47 opened this issue 2 years ago • 1 comments

Describe the feature and the current behavior/state

TXS supports placing multiple cursors by holding Ctrl+Alt and clicking or dragging. It does not support multi-selection with double clicks, meaning holding Ctrl+Alt, double clicking one word while still holding Ctrl+Alt, and double clicking another word and so on.

Who will benefit with this feature?

Often I want to change multiple (possibly distinct) words or commands that are at different parts of the document to a single word/command. Currently the only way to do that (that I know) is to place a cursor in front of each thing you want to remove and doing Ctrl + Shift + + Delete. Of course one can use find/replace but that becomes tedious for small cases, and when the words/commands to be replaced are distinct.

mbertucci47 avatar Jun 19 '23 16:06 mbertucci47

Some (very small) optimization of your procedure could be simply using delete to end of word with Ctrl+Delete (after placing all the cursors at start of each word).

If one would enhance multicursors to support word selection with Ctrl+D then placing the multicursors would become much easier because you could set each cursor somewhere within the word, and not exactly at the beginning of the word.

Or multicursors could support word deletion with Alt+Delete. In this case no exact cursor settings are needed.

octaeder avatar Jul 05 '23 14:07 octaeder