This plugin adds a few commands to use Obsidian with Emacs-like keybindings.
What is this plugin:
- Basic imitation of Emacs commands to make text editing for Emacs users more smooth
What isn't this plugin:
- Implementation of complete GNU Emacs functionality and integration elisp into Obsidian
- Exact reproducing behavior of GNU Emacs commands
Run:
export OBSIDIAN_PLUGINS_DIR=/path/to/obsidian/vault/.obsidian/plugins
make install
export OBSIDIAN_PLUGINS_DIR=/path/to/obsidian/vault/.obsidian/plugins
make uninstall
Hotkey | Obisdian command | Description |
---|---|---|
Ctrl + b | Backward char | Move cursor one character backward |
Alt + Backspace | Backward kill word | Delete one word backward |
Alt + Shift + ] | Backward paragraph | Move cursor one paragraph backward |
Alt + b | Backward word | Move cursor one word backward |
Alt + Shift + , | Beginning of buffer | Move to the beginning of a buffer |
Ctrl + d | Delete char | Delete the following char |
Alt + Shift + . | End of buffer | Move to the end of a buffer |
Ctrl + f | Forward char | Move cursor one character forward |
Alt + Shift + [ | Forward paragraph | Move cursor one paragraph forward |
Alt + f | Forward word | Move cursor one word forward |
Ctrl + g | Keyboard quit | Signal a ‘quit’ condition (works only for selection) |
Ctrl + k | Kill line | Kill the rest of the current line |
Ctrl + w | Kill region | Cut a selected region |
Alt + w | Kill ring save | Copy a selected region |
Alt + d | Kill word | Delete chars until end of a word |
Ctrl + a | Move beginning of line | Move cursor to beginning of line |
Ctrl + e | Move end of line | Move cursor to end of line |
Ctrl + n | Next line | Move cursor to next line |
Ctrl + p | Previous line | Move cursor to previous line |
Ctrl + l | Recenter | Scroll window to center current line |
Ctrl + Shift + - | Redo | Redo |
Ctrl + Space | Set mark command | Mark the beginning of a selection |
Ctrl + / | Undo | Undo |
Ctrl + y | Yank | Paste (Yank) a cut or copied a region |
Alt + x | Open command palette | Open command palette |
- Move to beginning of line command (Ctrl + a) conflicts with select all action. Solution: Use Home/End + Shift.
- Conflicts with existing hotkeys. Solution: use additional plugin for custom bindings, for example https://github.com/tgrosinger/leader-hotkeys-obsidian
- Absent support of "kill-ring". Solution: use plugin https://github.com/Karakaz/obsidian-paste-from-history with
Alt + y
keybinding - Absent support of scroll-up/scroll-down commands. Solution is not found
- Absent support of holding shortcuts. Solution is not found