This plugin for Obsidian let's you map hotkeys to editor commands available in the API. Available commands are :
goUp: move cursor up a linegoDown: move cursor down a linegoLeft: move cursor leftgoRight: move cursor rightgoStart: move cursor to the start of the notegoEnd: move cursor at the end of the noteindentMore: indent current or selected linesindentLess: unindent current or selected linesnewlineAndIndent: create a new line and indent cursorswapLineUp: swap the current line and the line above itswapLineDown: swap the current line and the line below itdeleteLine: delete the current linetoggleFold: fold or unfold item at current positionfoldAll: fold everythingunfoldAll: unfold everyting
Note : these commands are only available when an editor is opened.
Note : some commands are already available in Obsidian, but for the sake of completeness, I still added them here.
The original idea was to replicate the behaviour of the Tabout extension for VSCode by Albert Romkes, but mapping Tab as a hotkey is not possible in Obsidian.
While studying the Obsidian API, I discovered the editor commands and thought it would be a good idea to be able to assign hotkeys to them.
Thus, to kinda replicate the Tabout behaviour, just set an hotkey to the 'goRight' command.
You can manually install this plugin by downloading the latest release, and copy the file manifest.json and main.js under the folder vaultFolder/.obsidian/plugins/editor-commands-remap.
This plugin does not set default hotkeys.
To set hotkeys, go to Settings > Hotkeys and search for Editor Commands Remap.

When moving the cursor, pressing Shift or Ctrl+Shift also select text. Thus, it is not recommended to use Ctrl or Shift as hotkey modifiers for moving the cursor.
Alt is the recommended modifier.