Sublime Forum

How to keep the replace box remain after a replace all


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.




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.


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