Change TAB key behaviour

What I’m trying to do

When I press the TAB key, the editor “indents” the entire line where the cursor is. If it’s a list item it indents the list, otherwise it inserts four spaces at the beginning of the line. Same with SHIFT-TAB, it removes four spaces from the beginning of the line.

Is there a way to make it act like most other text editors, and insert one or more spaces where the cursor is?

If I want to indent the entire line, I’ll move the cursor to the beginning of the line and press TAB there. (Or I’m assuming there are “indent” and “un-indent” commands that I could assign “⌘]” and “⌘[” hotkeys to, since that’s what I’m used to with BBEdit.)

Things I have tried

Gone through every setting on every page under “Settings”. The closest thing I could find was “Settings → Editor → Indent using tabs”, which is turned off.

Other info

  • Obsidian v1.5.3
  • macOS v14.2.1
  • Plugins: Minimal Theme Settings (and its theme, of course)
1 Like

You could give this a try:

1 Like