You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,18 @@ Codebuff is a tool for editing codebases via natural language instruction to Buf
55
55
- ESC key to toggle menu or stop AI response
56
56
- CTRL+C to exit the application
57
57
58
+
### Terminal Key Compatibility
59
+
60
+
**Cross-Platform Navigation**: For maximum compatibility across terminal emulators:
61
+
62
+
- Use `Ctrl+Tab/Ctrl+Shift+Tab` for hint navigation - works reliably everywhere and avoids conflicts with normal Tab behavior
63
+
- Use `Enter` to send messages or expand nodes (context-aware) - prioritizes chat functionality
64
+
- Use `Backspace` to delete characters or collapse nodes (context-aware) - prioritizes chat functionality
65
+
-`Ctrl+Up/Down` is unreliable on macOS
66
+
-`Shift+Arrow` combinations have mixed compatibility
67
+
- Emacs/readline shortcuts (`Ctrl+A`, `Ctrl+E`, etc.) are the most reliable cross-platform
68
+
- Avoid `Option/Meta` keys when possible as they require terminal configuration on macOS
69
+
58
70
## Package Management
59
71
60
72
- Use Bun for all package management operations
@@ -270,6 +282,7 @@ The `.bin/bun` script automatically wraps bun commands with infisical when secre
270
282
**Worktree Support**: The wrapper automatically detects and loads `.env.worktree` files when present, allowing worktrees to override Infisical environment variables (like ports) for local development. This enables multiple worktrees to run simultaneously on different ports without conflicts.
271
283
272
284
The wrapper also loads environment variables in the correct precedence order:
285
+
273
286
1. Infisical secrets are loaded first (if needed)
274
287
2.`.env.worktree` is loaded second to override any conflicting variables
275
288
3. This ensures worktree-specific overrides (like custom ports) always take precedence over cached Infisical defaults
constSTATUS_TEXT='Shift + →/← to view agent traces • ESC or Ctrl+C to exit'
20
+
constSTATUS_TEXT=
21
+
'Ctrl+Tab/Ctrl+Shift+Tab to navigate hints • Enter to expand/send • Backspace to collapse/delete • ESC or Ctrl+C to exit'
21
22
constPLACEHOLDER_TEXT='Type your message...'
22
23
constWELCOME_MESSAGE=
23
24
'Welcome to Codebuff Chat! Type your messages below and press Enter to send. This is a dedicated chat interface for conversations with your AI assistant.'
@@ -68,7 +69,6 @@ interface ChatState {
68
69
messageQueue: string[]
69
70
userHasScrolled: boolean
70
71
currentStreamingMessageId?: string
71
-
navigationMode: boolean// New: track if we're in navigation mode
0 commit comments