Sublime Forum

Search & Replace in selection awkward to use

#1

I don’t like using the search and replace, because I often use it only “in a selection”. However, the in-selection button is very easy to miss. I am aware there has been some discussion in the past and that there is a configuration setting to always replace in-selection when lines are selected, but it is not enabled in version 3 because of the confusion that would result.

My specific complaint, now is that the button is on the opposite side of the screen as the “Replace”. It requires mousing over to left side of the screen to click it and then going all the way over to the right again to click “Replace”. This makes my wrist tired. Moreover, it would be a usability improvement to rearrange these controls somehow or add an explicit button to “replace in selection”.

0 Likes

#2

Add this to your key bindings:

{
    "keys": ["alt+s"],
    "command": "toggle_in_selection",
    "context": [
        { "key": "setting.is_widget", "operator": "equal", "operand": true }
    ]
},

No, just press alt+s when you research, and it’ll toggle the in_selection

1 Like