A minimal Sublime Text plugin that remembers whether your Terminus panel was open between sessions and automatically restores it.
- Automatic State Persistence: Remembers if Terminus was open when you closed Sublime Text
- Seamless Restoration: Automatically reopens Terminus on startup if it was previously open
- Convenient Menu Integration: Quick access to Terminus controls via View menu
- Configurable: Toggle persistence on/off as needed
- Sublime Text 3 or 4
- Terminus plugin installed
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Select "Package Control: Install Package"
- Search for "Terminus Persistence"
- Press Enter to install
Once installed, the plugin works automatically:
- Open Terminus panel (via `Alt+`` or View menu)
- Close Sublime Text
- Reopen Sublime Text
- Terminus panel will automatically reopen
Access via View → Terminus:
- Toggle Panel: Opens or closes the Terminus panel
- Toggle Persistence: Enables or disables automatic persistence (shows checkmark when enabled)
Settings can be accessed via: Preferences → Package Settings → Terminus Persistence → Settings
Default settings:
{
// Enable or disable automatic persistence of Terminus panel state
"persistence_enabled": true
}- On Close: When you close a Sublime Text window, the plugin checks if a Terminus panel is visible
- State Storage: The visibility state is saved to plugin settings
- On Startup: When Sublime Text loads, the plugin waits 1 second (to ensure Terminus is loaded) then restores the panel state
- Configurable: Persistence can be toggled on/off via the View menu
- Make sure Terminus plugin is installed and enabled
- Check that persistence is enabled: View → Terminus → Toggle Persistence (should show checkmark)
- Try increasing the delay in
plugin_loaded()if Terminus loads slowly
- Ensure the folder is named exactly
TerminusPersistence - Restart Sublime Text
- Check Console for errors (View → Show Console)
TerminusPersistence/
├── terminus_persistence.py # Main plugin code
├── TerminusPersistence.sublime-settings # Default settings
├── Main.sublime-menu # View menu integration
└── README.md # This file
- Enable Sublime Text console: View → Show Console
- Open Terminus panel
- Close and reopen Sublime Text
- Check console for any errors
- Verify Terminus reopens automatically
Contributions are welcome! Please feel free to submit issues or pull requests.
MIT License - See LICENSE file for details
Gabriel Lody
- Terminus by randy3k - The excellent terminal emulator this plugin extends
- Sublime Text community
- Basic persistence functionality
- View menu integration
- Toggle persistence on/off
- Automatic state restoration