Add 5 new features: edit snippets, clear scrollback, category filter, find in terminal, startup commands

1. Edit Snippets: Edit button to modify existing snippets
2. Clear Scrollback: Cmd+Shift+K to clear all terminal output
3. Category Filter: Dropdown to filter snippets by category
4. Find in Terminal: Cmd+F to search terminal output (built-in)
5. Startup Commands: Configure commands to run when opening new tabs

All features tested and working
This commit is contained in:
2026-01-31 23:21:39 +00:00
parent 8573e09563
commit 9561e229aa
6 changed files with 184 additions and 12 deletions

View File

@@ -179,6 +179,13 @@ class TerminalSession: NSObject, NSTextViewDelegate, NSMenuDelegate {
// Wait a bit for shell to initialize, then show prompt
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { [weak self] in
self?.showPrompt()
// Run startup commands
for command in TerminalSettings.shared.startupCommands {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self?.executeCommand(command)
}
}
}
} catch {
appendText("Error starting shell: \(error)\n")