Examples of how to invoke plugin commands in visual mode #146
huyz
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I rely on this Vimrc Support plugin to be able to do chorded shortcuts.
That means I have to reproduce hotkey mappings in
.obsidian.vimrcrather than use Obsidian's "Hotkeys" UI. But some plugin commands work on selections and these selections get lost with anobcommand. (See #99 (comment))So we have to use a
jscommandinstead because Vimrc Support provides us with a preservedselection.Here are two examples of how to invoke commands for the plugins https://github.com/timhor/obsidian-editor-shortcuts and https://github.com/dy-sh/obsidian-code-block-from-selection (invoked with
⌥C Tand⌥M Pon macOS):NOTE:
<A-ç>may need to be changed toçonce this Fix mac international keyboards replit/codemirror-vim#60 PR is merged into Obsidian.Beta Was this translation helpful? Give feedback.
All reactions