Commit Graph
11 Commits
Author SHA1 Message Date
Julius Marminge 00d7519728 change defailt for new termial 2026-02-15 14:42:22 -08:00
Julius Marminge aca3edd044 update doc 2026-02-15 14:27:37 -08:00
Julius Marminge b8dfe54154 Harden keybinding schemas and align tests with server defaults
- make resolved keybinding/shortcut schemas strict to reject unknown fields
- export server `DEFAULT_KEYBINDINGS` as source of truth and reuse it in ws tests
- simplify keybinding test fixtures and update docs to reference server defaults
2026-02-15 14:20:50 -08:00
Julius Marminge e1660c6bf2 Extract keybindings config loading into keybindings module
- Move default keybindings, config parsing, validation, and merge logic out of `wsServer`
- Add `loadResolvedKeybindingsConfig(logger)` in `apps/server/src/keybindings.ts`
- Update server wiring docs to point to `server.getConfig` integration
2026-02-15 14:05:07 -08:00
Julius Marminge 514570a680 Simplify resolved keybinding payload and remove unused LRU cache
- drop `key` and `when` from resolved keybinding rule schema/payload
- update server/web/contracts tests and keybindings docs for `whenAst`-only resolution
- delete unused web `LruCache` implementation and tests
2026-02-15 13:56:37 -08:00
Julius Marminge 5a1a5de724 Resolve and validate keybindings on server before sending to web
- add server keybinding compiler for shortcuts and `when` AST parsing
- switch websocket/server config payload to resolved keybinding rules
- update web keybinding logic/types to consume resolved payload directly
- add/adjust contract, server, and web tests (including plus-key parsing) and docs
2026-02-15 13:48:16 -08:00
Julius Marminge 1c80b4f1fe Resolve keybinding precedence across commands
- Evaluate shortcut matches by resolving the last matching key+when rule, regardless of command
- Add cross-command precedence tests and switch assertions to `vitest` `assert`
- Clarify precedence behavior in `KEYBINDINGS.md`
2026-02-15 12:00:53 -08:00
Julius Marminge 5fac591417 Add configurable shortcuts for new chat and open-in-editor
- add `chat.new` and `editor.openFavorite` to keybinding contracts and server defaults
- use shared keybinding matching in sidebar/chat view instead of hardcoded Cmd/Ctrl combos
- document new commands/defaults and extend server/web keybinding tests
2026-02-15 11:48:43 -08:00
Julius Marminge ea140aae21 Add source links to keybinding schema references
- convert schema and server file references in `KEYBINDINGS.md` to clickable Markdown links
2026-02-15 11:34:10 -08:00
Julius Marminge 0707d4a826 Resolve terminal keybindings on server before sending config
- Move default keybinding resolution/override merging into `server.getConfig`
- Return server-resolved keybindings to the web client instead of resolving in UI
- Update docs and tests to reflect server-side defaults, overrides, and truncation behavior
2026-02-15 11:30:27 -08:00
Julius Marminge 384b5e0887 Add configurable terminal keybindings loaded from ~/.t3
- extend `server.getConfig` to return sanitized keybinding rules from `~/.t3/keybindings.json`
- apply resolved bindings in the web app for toggle/split/new terminal shortcuts and labels
- add contracts/docs and tests for config parsing, validation, and shortcut behavior
2026-02-15 11:11:26 -08:00