A simple Obsidian plugin that adds a command to instantly insert a divider line (---) at the beginning of the current note.
1.20.mov
- Adds a command to insert a divider at the beginning of the note
- Automatically moves cursor to the beginning after insertion
- Option to respect headings when inserting dividers
- Smart handling of frontmatter - dividers are inserted after frontmatter if present
- Open Obsidian Settings
- Go to Community Plugins and disable Safe Mode
- Click Browse and search for "Instant Above Divider"
- Install and enable the plugin
- Open Obsidian Settings > Hotkeys
- Search for "Instant Above Divider: Add Section"
- Set your preferred hotkey (recommended:
Option/Alt + Shift + N
) - Use your configured hotkey to insert a divider at the beginning of the current note
When enabled, the plugin will consider the location of headings when inserting dividers:
- If the cursor is directly after a heading, the divider will be inserted after that heading
- Otherwise, the divider will be inserted at the current cursor position
When disabled, dividers will always be inserted at the beginning of the note content (after frontmatter if present).
Note: The plugin will always respect frontmatter (YAML metadata at the beginning of the note) regardless of this setting. If your note has frontmatter, the divider will be inserted after it rather than at the very beginning of the file.
MIT