Lean Terminal

unlisted

by LeanProductivity

Embedded terminal panel powered by xterm.js and node-pty - no external windows.

Updated 29d agoMIT
View on GitHub

Lean Terminal: Ctrl+Space and persistent toggle

An enhanced Lean Terminal for Obsidian with two focused improvements:

  • Session-preserving toggle: hide and show the terminal without restarting shells, stopping running programs or losing scrollback. Output continues while the panel is hidden.
  • Windows Nushell Ctrl+Space: preserve Space + CONTROL through ConPTY, so existing Nushell bindings work unchanged. The fix applies only to the focused terminal after Win32 keyboard mode negotiation; other keys keep their normal handling.

Show and hide the terminal

Bind Lean Terminal: Toggle terminal to F12 (or your preferred shortcut). Toggling hides the panel and restores the same terminal tabs, processes and scrollback. Output continues while hidden. If a panel also contains note tabs, it switches to a note instead of hiding that shared panel. Close terminal, closing an individual terminal tab, disabling the plugin and quitting Obsidian still end the affected sessions.

Reload Obsidian once after installing this change. Save or finish running work first: the update cannot preserve processes across that initial reload.

Install

Install Lean Terminal and its native binaries in the vault first. Download and extract the ZIP from this repository's Releases, close the vault in Obsidian, and run with Node.js 22 or later:

node install.mjs --vault "D:\Path\MyVault"

To build the current plugin from source, run from this repository's root with Node.js 22 or later:

npm ci
npm run build
node install.mjs --vault "D:\Path\MyVault"

Reopen Obsidian, enable Lean Terminal, select your Windows nu.exe, and leave Win32 Ctrl+Space enabled. The installer preserves settings and native binaries and backs up replaced plugin files. Existing Lean Terminal 1.4.0, 1.5.0 and 1.5.1 installations can be upgraded to 2.0.0; reinstalling 2.0.0 is also supported. Official plugin updates may replace it; install the hotfix again only for a compatible version.

Check with keybindings listen: pressing Ctrl+Space should report Space with CONTROL. Exit with Escape and use your original Nushell bindings as usual. To revert, close the vault and restore the files from the printed backup folder, or disable Win32 Ctrl+Space in the plugin settings.

Based on MIT-licensed Lean Terminal. Original attribution is retained in LICENSE. Native binaries are supplied by Lean Terminal's original binary distribution.

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.