Releases: AbdelrahmanHafez/obsidian-scroll-line
Release list
1.2.2
1.2.1
Changed
- The plugin no longer writes shortcut defaults directly to Obsidian's configuration. Reading mode shortcuts can be assigned in Settings > Hotkeys.
- Removed the unused funding link from the plugin manifest.
1.2.0
Added
- Scroll line shortcuts now work in Reading mode.
Fixed
- Trackpad, mouse wheel, scrollbar, and touch input now take control immediately after shortcut scrolling instead of being pulled back by the active animation.
- Upward shortcut scrolling continues when the editor adjusts its viewport internally.
1.1.0
What's new
- Smooth scroll — animate the scroll with easing instead of jumping instantly. Enabled by default. Toggle in Settings → Scroll Line → Smooth scroll.
Details
Smooth scroll uses a requestAnimationFrame loop with exponential easing (catches up ~20% of the remaining distance per frame, settling within ~200ms). Key-repeat accumulates into the scroll target, so holding the hotkey glides continuously rather than queueing discrete jumps.
Disabling the toggle falls back to the instant scroll behavior from 1.0.0.
Install / update
Install via Settings → Community plugins, or download main.js, manifest.json, and styles.css from this release and drop them into <vault>/.obsidian/plugins/scroll-line/.
1.0.0
Initial release
Scroll 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
- Continuous scroll on key hold (registered at CM6 level so key-repeat works)
- Uses CodeMirror 6's actual line height for accurate scrolling across all themes and font sizes
Install
Install via Settings → Community plugins, or download main.js, manifest.json, and styles.css from this release and drop them into <vault>/.obsidian/plugins/scroll-line/.
Configuration
Default keybindings: Ctrl+Alt+↓ / Ctrl+Alt+↑ (auto-configured on first install).
Open Settings → Scroll Line to configure lines per scroll.