Klojer / obsidian-emacs-text-editor

GNU General Public License v3.0
17 stars 4 forks source link

ctrl + g doesn't cancel search #7

Open notuntoward opened 3 months ago

notuntoward commented 3 months ago

Being a longtime emacs user, my fingers are hard-wired to use ctrl + g to cancel a search. In emacs, ctr + g exits search, and leaves the cursor on the line search brought me to. This is what escape does currently in obsidian, when using this plugin, but would it be possible for this plugin to make ctrl + g do it too? My neural system would thank you.

Klojer commented 3 months ago

I'm sorry, but I don't see API for this operation. The closest one showSearch, but it does the opposite thing.

My muscle memory sad too :(