timhor / obsidian-editor-shortcuts

Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code (vscode) or Sublime Text
MIT License
356 stars 25 forks source link

[FR] Undo and Redo #66

Closed Remodor closed 1 year ago

Remodor commented 1 year ago

Hello again,

another feature request would be shortcuts for undo and redo. ctrl + z and ctrl + shift + z.

Thank you again!

timhor commented 1 year ago

Can you share some context as to why you're looking to remap these standard OS-level shortcuts in Obsidian (same with https://github.com/timhor/obsidian-editor-shortcuts/issues/65)? It should be easy enough to do but I'm curious to understand a bit more 🙏

Remodor commented 1 year ago

I map all my shortcuts to alt, similar as you would use vim. As soon as you get used to it, it feels very quick very intuitive. alt + ESDF navigation, alt + u undo, alt + U redo, alt + d delete line, alt + c delete word in front of cursor, alt + capslock (which I remapped to backspace by default) delete word in back of cursor. Etc..

There are many things I actually remap to alt, (basically all) because it is so easily reachable with the thumb :)

timhor commented 1 year ago

Undo and redo can now be remapped in v1.14.0