atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 219 forks source link

Keybindings ctrl-e #407

Open pappu687 opened 9 years ago

pappu687 commented 9 years ago

ctrl-e has been being used for emmet in lot of editors as generally accepted keybinding. Unfortunately this find-and-replace by default conflicts that and Emmet abbreviations do not work.

Can this be changed to something else?

OS : Linux

benogle commented 9 years ago

Do you have a suggestion on keybinding for linux/win? What do other editors use for 'use selection as find pattern'?

pappu687 commented 9 years ago

It's in fact same for selection find+replace in Sublime for example. But this only applies when there's a selection. If the caret is at the end of a word/tag, it will use CTRL+E to execute Emmet expand command. For Atom, despite something is selected or not, the binding is executed.

I hope that answers your question.

alflanagan commented 9 years ago

And Emacs users expect ctrl-E to mean "go to end of line". Not sure there's a way to make everyone happy here.

robsonsobral commented 8 years ago

CTRL+F already works for 'use selection as find pattern', if there's a selection. Same as Notepad++. I'm not sure, but I think even Dreamweaver uses CTRL+F!

Please, leave CTRL-E free, so @pappu687 and I can use Emmet and @alflanagan can go to the end of line. ;-)

pappu687 commented 8 years ago

I wonder who on Earth searches within current line these days unless you're working with a really big CSV file.

jwithington commented 7 years ago

This bothered me, too, so I changed the keybinding. Steps:

  1. Go to Settings > Keybindings, and find the ctrl-e setting for emmet
  2. Click on the little clipboard icon to copy the keybinding code It probably looks something like this:
    'atom-text-editor:not([mini])':
    'ctrl-e': 'emmet:expand-abbreviation''
  3. Click the link marked your keymap file to open your keymap.cson
  4. Paste in the code that you copied in step 2.

Since it's in the user-provided keybindings, it will override the Core keybinding.

Note: I tried to change the find-and-replace binding instead, but that didn't push ctrl-e for emmet to the top of the priority list. This did.

Hope this helps!