How to change the keybinding of "Replace all" in the search and replace function?


#1

Hi,

How would I change the keybinding of “Replace all” from Ctrl+Enter to Alt+R? Is there any documentation you can direct me to on how to edit keymap bindings? Including all the available commands for Atom, that one can include in the keymap.cson file.

Thanks for your time,
Brenton


#2

Hi mate, hope this can help you:

https://atom.io/docs/v1.3.3/using-atom-basic-customization#customizing-key-bindings


#3

Thanks for the attempt to help, but it is not particularly helpful as it does not tell me the command for the “Replace all” action in the Find and Replace function. Gave me the commands for some actions, but not any related to the Find and Replace function, so thanks for that.


#4

Sorry, I just found out here that Find and Replace is a separate package:

https://atom.io/docs/latest/using-atom-find-and-replace

If you check here:

you can see that there is a ‘keympas’ directory where you find a .cson file:

there are all key-bindings, search by - ‘find-and-replace:confirm’ but in your system of course