Rebind keyboard shortcuts for editing

What I’m trying to do

I want to change some keyboard shortcuts for text editing. Specifically, I want to switch the functionality of command+right/left arrow keys and alt+right/left arrow keys, so that using command goes to the next/prev word and alt goes to end/beginning of line.

I have changed this shortcut on my macOS system level, so it works with many apps, but Obsidian seems to have this defined internally rather than letting macOS handle it.

Things I have tried

I have looked into hotkeys, and it seems those are only for commands. I couldn’t find a way to bind a hotkey to an editing action like “Move the cursor to the end of the next word”. I’ve searched the forum and not found any discussions of this.

Thank you for your help :slightly_smiling_face:

I think something like this could be handled further up, or down, the chain (depending on how you want to look at it) by your OS. Either the OS itself or third-party software could handle this. I don’t use it currently, but used to use on macOS. I’m sure there are options for Windows and Linux.

1 Like

Thank you - I will look into this. I’d like to avoid installing software if possible, so I’d still really appreciate any suggestions for handling this without, but I’ll give this a try.

You find all hotkey actions in the settings. Some actions like Force Reload are only available from the top menu.

There are no word or line based navigation actions available in the hotkeys section.

1 Like

I’ve been able to accomplish most of what I want to do via @timhor’s Code Editor Shortcuts plugin. Thanks Tim!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.