A
A
Alexander B.2017-09-23 22:06:13
Sublime Text
Alexander B., 2017-09-23 22:06:13

How to not close the replace window in Sublime 3.0?

Hey!
In sublime 3.0 for mac I do a search and replace and every time after clicking "Replace all" the search box closes. How to make it not closed?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Karagodnikov, 2017-11-03
@VenZell

Unfortunately, the behavior of the "Replace all" button cannot be changed.
However, you can change the behavior of the replacement window when you press the key combination Ctrl + Alt + Enter.
Open the menu Preferences - Key Bindings . We are looking for the section Replace panel key bindings
in the left section ( Default ) and copy the value from there for the action after pressing the "ctrl+alt+enter" combination. You need to remove this part from it: and paste it into the right section ( User ). If no other keyboard shortcuts have been created, the code in the user part will be like this:

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

After that, when you press Ctrl + Alt + Enter, all matches will be replaced and the text replacement window will not close.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question