Scroll Line
pendingby AbdelrahmanHafez
Scroll the viewport up or down by a configurable number of lines without moving the cursor.
Scroll Line
An Obsidian plugin that scrolls the editor viewport up or down by a configurable number of lines, without moving the cursor. Similar to editor.action.scrollLineDown / editor.action.scrollLineUp in VS Code.
Features
- Configurable lines per scroll
- Keybindings configurable via Obsidian's built-in Hotkeys page
- Smooth key-repeat support (hold the key to keep scrolling)
- Uses CodeMirror 6's actual line height for accurate scrolling across all themes and font sizes
Installation
From Obsidian Community Plugins
- Open Settings > Community plugins
- Search for Scroll Line
- Click Install, then Enable
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder
scroll-lineinside your vault's.obsidian/plugins/directory - Place the downloaded files inside that folder
- Reload Obsidian and enable the plugin in Settings > Community plugins
Configuration
Lines per scroll: Open Settings > Scroll Line to set how many lines to scroll per keypress (default: 1).
Keybindings: Default keybindings (Ctrl+Alt+↓ / Ctrl+Alt+↑) are set up automatically on first install. To change them, open Settings > Hotkeys and search for "Scroll Line".
Why This Plugin?
Obsidian has no built-in command for scrolling the viewport by lines. The existing hotkey system doesn't support key-repeat for commands, so holding a key only fires once. This plugin registers keybindings at the CodeMirror 6 level, which properly handles key-repeat for smooth, continuous scrolling.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.