Sublime Forum

How to keep the replace box remain after a replace all

#1

So during work I’m editing a lot of syntax that are downloaded and because of that I often need to find and replace certain variables. I find whenever I use replace all , the (find what/replace what) box below disappear and I have to use the shortcut ctrl + h to make them appear again. It is possible to have the box always appear without needing to use the “ctrl +h” everytime you make a replacement? I know when I use “replace” the box remains, but using “replace all” the box disappears.

Thanks

0 Likes

#2

Looking at the default keymapping file (for Windows), it contains the following:

{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true},
    "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},

I imagine you can recreate this keybinding in your user keybindings file and change close_panel to false, to keep the panel open when you press the keybinding. As for clicking the Replace All button, you might be out of luck there.

2 Likes

Option to not close the Find Bar when the Replace All button is clicked