Open pappu687 opened 9 years ago
Do you have a suggestion on keybinding for linux/win? What do other editors use for 'use selection as find pattern'?
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.
And Emacs users expect ctrl-E to mean "go to end of line". Not sure there's a way to make everyone happy here.
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. ;-)
I wonder who on Earth searches within current line these days unless you're working with a really big CSV file.
This bothered me, too, so I changed the keybinding. Steps:
'atom-text-editor:not([mini])':
'ctrl-e': 'emmet:expand-abbreviation''
your keymap file
to open your keymap.csonSince 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!
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