@tecet/ollm 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/cli.js +20 -14
  2. package/dist/cli.js.map +3 -3
  3. package/dist/services/documentService.d.ts.map +1 -1
  4. package/dist/services/documentService.js +12 -2
  5. package/dist/services/documentService.js.map +1 -1
  6. package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -1
  7. package/dist/ui/components/docs/DocsPanel.js +1 -1
  8. package/dist/ui/components/docs/DocsPanel.js.map +1 -1
  9. package/dist/ui/components/launch/VersionBanner.js +1 -1
  10. package/dist/ui/components/launch/VersionBanner.js.map +1 -1
  11. package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -1
  12. package/dist/ui/components/layout/KeybindsLegend.js +1 -1
  13. package/dist/ui/components/layout/KeybindsLegend.js.map +1 -1
  14. package/dist/ui/components/tabs/BugReportTab.js +1 -1
  15. package/dist/ui/components/tabs/BugReportTab.js.map +1 -1
  16. package/dist/ui/services/docsService.d.ts +12 -27
  17. package/dist/ui/services/docsService.d.ts.map +1 -1
  18. package/dist/ui/services/docsService.js +40 -67
  19. package/dist/ui/services/docsService.js.map +1 -1
  20. package/docs/README.md +3 -410
  21. package/package.json +10 -7
  22. package/scripts/copy-docs-to-user.cjs +34 -0
  23. package/docs/Context/CheckpointFlowDiagram.md +0 -673
  24. package/docs/Context/ContextArchitecture.md +0 -898
  25. package/docs/Context/ContextCompression.md +0 -1102
  26. package/docs/Context/ContextManagment.md +0 -750
  27. package/docs/Context/Index.md +0 -209
  28. package/docs/Context/README.md +0 -390
  29. package/docs/DevelopmentRoadmap/Index.md +0 -238
  30. package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
  31. package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
  32. package/docs/DevelopmentRoadmap/README.md +0 -174
  33. package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
  34. package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
  35. package/docs/Hooks/Architecture.md +0 -885
  36. package/docs/Hooks/Index.md +0 -244
  37. package/docs/Hooks/KeyboardShortcuts.md +0 -248
  38. package/docs/Hooks/Protocol.md +0 -817
  39. package/docs/Hooks/README.md +0 -403
  40. package/docs/Hooks/UserGuide.md +0 -1483
  41. package/docs/Hooks/VisualGuide.md +0 -598
  42. package/docs/Index.md +0 -506
  43. package/docs/Installation.md +0 -586
  44. package/docs/Introduction.md +0 -367
  45. package/docs/LLM Models/Index.md +0 -239
  46. package/docs/LLM Models/LLM_GettingStarted.md +0 -748
  47. package/docs/LLM Models/LLM_Index.md +0 -701
  48. package/docs/LLM Models/LLM_MemorySystem.md +0 -337
  49. package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
  50. package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
  51. package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
  52. package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
  53. package/docs/LLM Models/LLM_ModelsList.md +0 -1071
  54. package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
  55. package/docs/LLM Models/README.md +0 -355
  56. package/docs/MCP/MCP_Architecture.md +0 -1086
  57. package/docs/MCP/MCP_Commands.md +0 -1111
  58. package/docs/MCP/MCP_GettingStarted.md +0 -590
  59. package/docs/MCP/MCP_Index.md +0 -524
  60. package/docs/MCP/MCP_Integration.md +0 -866
  61. package/docs/MCP/MCP_Marketplace.md +0 -160
  62. package/docs/MCP/README.md +0 -415
  63. package/docs/Prompts System/Architecture.md +0 -760
  64. package/docs/Prompts System/Index.md +0 -223
  65. package/docs/Prompts System/PromptsRouting.md +0 -1047
  66. package/docs/Prompts System/PromptsTemplates.md +0 -1102
  67. package/docs/Prompts System/README.md +0 -389
  68. package/docs/Prompts System/SystemPrompts.md +0 -856
  69. package/docs/Quickstart.md +0 -535
  70. package/docs/Tools/Architecture.md +0 -884
  71. package/docs/Tools/GettingStarted.md +0 -624
  72. package/docs/Tools/Index.md +0 -216
  73. package/docs/Tools/ManifestReference.md +0 -141
  74. package/docs/Tools/README.md +0 -440
  75. package/docs/Tools/UserGuide.md +0 -773
  76. package/docs/Troubleshooting.md +0 -1265
  77. package/docs/UI&Settings/Architecture.md +0 -729
  78. package/docs/UI&Settings/ColorASCII.md +0 -34
  79. package/docs/UI&Settings/Commands.md +0 -755
  80. package/docs/UI&Settings/Configuration.md +0 -872
  81. package/docs/UI&Settings/Index.md +0 -293
  82. package/docs/UI&Settings/Keybinds.md +0 -372
  83. package/docs/UI&Settings/README.md +0 -278
  84. package/docs/UI&Settings/Terminal.md +0 -637
  85. package/docs/UI&Settings/Themes.md +0 -604
  86. package/docs/UI&Settings/UIGuide.md +0 -550
@@ -1,293 +0,0 @@
1
- # User Interface Documentation Index
2
-
3
- **Quick Reference with Links**
4
-
5
- This index provides quick navigation to all User Interface documentation with brief descriptions.
6
-
7
- ---
8
-
9
- ## 📚 Core Documentation
10
-
11
- ### [README.md](README.md)
12
-
13
- **Overview and Navigation Guide**
14
-
15
- Main entry point for User Interface documentation. Provides overview of the terminal-based UI, layout structure, key features, and quick start guide.
16
-
17
- **Topics:** Overview, Layout, Features, Navigation
18
- **Audience:** All users
19
-
20
- ---
21
-
22
- ### [Architecture](Architecture.md)
23
-
24
- **UI Architecture and Design** ⏳ Coming Soon
25
-
26
- Complete technical documentation of the UI system architecture. Will cover React + Ink architecture, component hierarchy, state management, and rendering optimization.
27
-
28
- **Topics:** Architecture, Components, State, Rendering
29
- **Audience:** Developers, architects
30
-
31
- **Planned Sections:**
32
-
33
- - UI architecture overview
34
- - React + Ink integration
35
- - Component hierarchy
36
- - State management
37
- - Rendering optimization
38
- - Theme system architecture
39
- - Terminal integration
40
-
41
- ---
42
-
43
- ### [UI Guide](UIGuide.md)
44
-
45
- **Main Interface Documentation**
46
-
47
- Comprehensive guide to the main interface layout and components. Covers header bar, chat view, side panel, status bar, and navigation.
48
-
49
- **Topics:** Layout, Components, Navigation, Focus Management
50
- **Audience:** All users
51
-
52
- **Key Sections:**
53
-
54
- - Interface layout overview
55
- - Header bar and status display
56
- - Chat view and message rendering
57
- - Side panel and tabs
58
- - Status bar and indicators
59
- - Focus management
60
- - Navigation shortcuts
61
-
62
- ---
63
-
64
- ### [Commands Reference](Commands.md)
65
-
66
- **Complete Slash Command Reference**
67
-
68
- Complete reference for all slash commands available in OLLM CLI. Organized by category with syntax, examples, and descriptions.
69
-
70
- **Topics:** Commands, Syntax, Examples
71
- **Audience:** All users
72
-
73
- **Key Sections:**
74
-
75
- - Session management commands
76
- - Context and model commands
77
- - MCP and extension commands
78
- - Git and workflow commands
79
- - Configuration commands
80
- - Help and utility commands
81
-
82
- ---
83
-
84
- ### [Keyboard Shortcuts](Keybinds.md)
85
-
86
- **All Keyboard Shortcuts and Keybindings**
87
-
88
- Complete reference for all keyboard shortcuts. Covers global shortcuts, chat interaction, navigation, and panel controls.
89
-
90
- **Topics:** Keybindings, Shortcuts, Navigation
91
- **Audience:** All users
92
-
93
- **Key Sections:**
94
-
95
- - Global shortcuts
96
- - Chat interaction keys
97
- - Navigation and focus
98
- - Tab and panel controls
99
- - Command palette
100
- - Quick actions
101
-
102
- ---
103
-
104
- ### [Themes Guide](Themes.md)
105
-
106
- **Theme System and Customization**
107
-
108
- Guide to the theme system. Covers built-in themes, theme management, color palettes, and custom theme creation.
109
-
110
- **Topics:** Themes, Colors, Customization
111
- **Audience:** All users
112
-
113
- **Key Sections:**
114
-
115
- - Built-in themes overview
116
- - Theme management commands
117
- - Color palette reference
118
- - Theme switching
119
- - Custom theme creation (planned)
120
- - Theme configuration
121
-
122
- ---
123
-
124
- ### [Terminal Guide](Terminal.md)
125
-
126
- **Integrated Terminal System**
127
-
128
- Guide to the integrated terminal system. Covers terminal architecture, PTY integration, ANSI rendering, and terminal commands.
129
-
130
- **Topics:** Terminal, PTY, ANSI, Commands
131
- **Audience:** All users
132
-
133
- **Key Sections:**
134
-
135
- - Terminal architecture
136
- - PTY integration
137
- - ANSI escape code rendering
138
- - Terminal commands
139
- - Terminal controls
140
- - Shell integration
141
-
142
- ---
143
-
144
- ### [Configuration](Configuration.md)
145
-
146
- **UI Configuration Options**
147
-
148
- Complete guide to UI configuration options. Covers layout settings, display preferences, theme configuration, and performance tuning.
149
-
150
- **Topics:** Configuration, Settings, Preferences
151
- **Audience:** All users
152
-
153
- **Key Sections:**
154
-
155
- - Layout settings
156
- - Display preferences
157
- - Theme configuration
158
- - Performance tuning
159
- - Accessibility options
160
- - Platform-specific settings
161
-
162
- ---
163
-
164
- ## 📖 Documentation by Topic
165
-
166
- ### Interface Layout
167
-
168
- - [UI Guide](UIGuide.md) - Complete layout guide
169
- - [README](README.md#ui-architecture) - Architecture overview
170
- - [Architecture](Architecture.md#layout) - Implementation (Coming Soon)
171
-
172
- ### Commands
173
-
174
- - [Commands Reference](Commands.md) - All commands
175
- - [UI Guide](UIGuide.md#command-palette) - Command palette
176
- - [README](README.md#essential-commands) - Quick reference
177
-
178
- ### Navigation
179
-
180
- - [Keyboard Shortcuts](Keybinds.md) - All shortcuts
181
- - [UI Guide](UIGuide.md#navigation) - Navigation guide
182
- - [README](README.md#basic-navigation) - Quick start
183
-
184
- ### Themes
185
-
186
- - [Themes Guide](Themes.md) - Complete theme guide
187
- - [Configuration](Configuration.md#themes) - Theme settings
188
- - [README](README.md#theme-system) - Overview
189
-
190
- ### Terminal
191
-
192
- - [Terminal Guide](Terminal.md) - Complete terminal guide
193
- - [Architecture](Architecture.md#terminal) - Implementation (Coming Soon)
194
- - [Configuration](Configuration.md#terminal) - Terminal settings
195
-
196
- ### Configuration
197
-
198
- - [Configuration](Configuration.md) - Complete configuration guide
199
- - [README](README.md#configuration) - Quick reference
200
- - [UI Guide](UIGuide.md#settings) - Settings panel
201
-
202
- ---
203
-
204
- ## 📖 Documentation by Audience
205
-
206
- ### For New Users
207
-
208
- 1. [README](README.md) - Start here
209
- 2. [UI Guide](UIGuide.md) - Interface overview
210
- 3. [Keyboard Shortcuts](Keybinds.md) - Essential shortcuts
211
-
212
- ### For Regular Users
213
-
214
- 1. [Commands Reference](Commands.md) - All commands
215
- 2. [Themes Guide](Themes.md) - Customization
216
- 3. [Configuration](Configuration.md) - Advanced settings
217
-
218
- ### For Developers
219
-
220
- 1. [Architecture](Architecture.md) - System design (Coming Soon)
221
- 2. [Terminal Guide](Terminal.md) - Terminal integration
222
- 3. [UI Guide](UIGuide.md#components) - Component structure
223
-
224
- ---
225
-
226
- ## 🔗 Related Documentation
227
-
228
- ### Core Systems
229
-
230
- - [Context Management](../Context/ContextManagment.md) - Context system
231
- - [Tools System](../Tools/README.md) - Tool execution
232
- - [Hooks System](../Hooks/README.md) - Hook automation
233
- - [MCP Integration](../MCP/MCP_Index.md) - MCP servers
234
-
235
- ### Developer Resources
236
-
237
- - Knowledge DB: `dev_UI_Front.md` - UI architecture
238
- - Knowledge DB: `dev_UI_Themes.md` - Theme system
239
- - Knowledge DB: `dev_Terminal.md` - Terminal system
240
-
241
- ---
242
-
243
- ## 📊 Documentation Status
244
-
245
- ### Completed ✅
246
-
247
- | Document | Status |
248
- | ---------------- | ----------- |
249
- | README.md | ✅ Complete |
250
- | Index.md | ✅ Complete |
251
- | UIGuide.md | ✅ Complete |
252
- | Commands.md | ✅ Complete |
253
- | Keybinds.md | ✅ Complete |
254
- | Themes.md | ✅ Complete |
255
- | Terminal.md | ✅ Complete |
256
- | Configuration.md | ✅ Complete |
257
-
258
- ### Planned ⏳
259
-
260
- | Document | Status |
261
- | --------------- | -------------- |
262
- | Architecture.md | ⏳ Coming Soon |
263
-
264
- **Overall Progress:** 89% complete (8/9 files)
265
-
266
- ---
267
-
268
- ## 🎯 Quick Links
269
-
270
- ### Common Tasks
271
-
272
- - Navigate interface → [Keyboard Shortcuts](Keybinds.md)
273
- - Run commands → [Commands Reference](Commands.md)
274
- - Change theme → [Themes Guide](Themes.md)
275
- - Configure UI → [Configuration](Configuration.md)
276
-
277
- ### Understanding Systems
278
-
279
- - Interface layout → [UI Guide](UIGuide.md)
280
- - Command system → [Commands Reference](Commands.md)
281
- - Theme system → [Themes Guide](Themes.md)
282
- - Terminal system → [Terminal Guide](Terminal.md)
283
-
284
- ### Quick Reference
285
-
286
- - Essential shortcuts → [README](README.md#basic-navigation)
287
- - Essential commands → [README](README.md#essential-commands)
288
- - Common workflows → [README](README.md#common-workflows)
289
-
290
- ---
291
-
292
- **Last Updated:** January 26, 2026
293
- **Version:** 0.1.0
@@ -1,372 +0,0 @@
1
- # Keyboard Shortcuts Reference
2
-
3
- **Complete Guide to Keyboard Shortcuts in OLLM CLI**
4
-
5
- ---
6
-
7
- ## Table of Contents
8
-
9
- 1. [Overview](#overview)
10
- 2. [Tab Navigation](#tab-navigation)
11
- 3. [Layout Controls](#layout-controls)
12
- 4. [Chat Interaction](#chat-interaction)
13
- 5. [Review Mode](#review-mode)
14
- 6. [Navigation](#navigation)
15
- 7. [File Explorer](#file-explorer)
16
- 8. [Terminal](#terminal)
17
- 9. [Global Focus Management](#global-focus-management)
18
- 10. [Customization](#customization)
19
-
20
- **See Also:**
21
-
22
- - [UI Guide](UIGuide.md) - Complete UI documentation
23
- - [Slash Commands](Commands.md) - Command reference
24
- - [Themes](Themes.md) - Theme customization
25
-
26
- ---
27
-
28
- ## Overview
29
-
30
- OLLM CLI provides comprehensive keyboard shortcuts for efficient navigation and interaction. All keybinds are customizable through the Settings UI or configuration file.
31
-
32
- ### Keybind Format
33
-
34
- Keybinds use the following format:
35
-
36
- **Modifiers:**
37
-
38
- - `ctrl` - Control key
39
- - `shift` - Shift key
40
- - `alt` - Alt key (Option on macOS)
41
- - `meta` - Meta key (Command on macOS, Windows key on Windows)
42
-
43
- **Special Keys:**
44
-
45
- - `return` - Enter key
46
- - `escape` - Escape key
47
- - `tab` - Tab key
48
- - `backspace` - Backspace key
49
- - `space` - Space bar
50
- - `up`, `down`, `left`, `right` - Arrow keys
51
-
52
- **Format:** `[modifier+][modifier+]key`
53
-
54
- **Examples:**
55
-
56
- - `ctrl+s` - Control + S
57
- - `shift+return` - Shift + Enter
58
- - `ctrl+shift+tab` - Control + Shift + Tab
59
-
60
- ---
61
-
62
- ## Tab Navigation
63
-
64
- Switch between main application tabs using Ctrl + Number.
65
-
66
- | Keybind | Action | Description |
67
- | -------- | ------------ | ---------------------------- |
68
- | `Ctrl+1` | Chat Tab | Switch to chat view |
69
- | `Ctrl+2` | Tools Tab | Switch to tools panel |
70
- | `Ctrl+3` | Hooks Tab | Switch to hooks panel |
71
- | `Ctrl+4` | Files Tab | Switch to file explorer |
72
- | `Ctrl+5` | Search Tab | Switch to search panel |
73
- | `Ctrl+6` | Docs Tab | Switch to documentation |
74
- | `Ctrl+7` | GitHub Tab | Switch to GitHub integration |
75
- | `Ctrl+8` | MCP Tab | Switch to MCP servers |
76
- | `Ctrl+9` | Settings Tab | Switch to settings |
77
-
78
- ---
79
-
80
- ## Layout Controls
81
-
82
- Global layout and panel management.
83
-
84
- | Keybind | Action | Description |
85
- | ---------------- | ------------------- | ---------------------------- |
86
- | `Ctrl+P` | Toggle Panel | Toggle side panel visibility |
87
- | `Ctrl+K` | Command Palette | Open command palette |
88
- | `Ctrl+/` | Toggle Debug | Toggle debug mode |
89
- | `Ctrl+Shift+Tab` | Switch Window Left | Switch to previous window |
90
- | `Ctrl+Tab` | Switch Window Right | Switch to next window |
91
-
92
- ---
93
-
94
- ## Chat Interaction
95
-
96
- Shortcuts for chat input and session management.
97
-
98
- | Keybind | Action | Description |
99
- | -------------- | ------------- | -------------------------- |
100
- | `Return` | Send Message | Send message to LLM |
101
- | `Shift+Return` | New Line | Insert new line in message |
102
- | `Ctrl+L` | Clear Chat | Clear chat history |
103
- | `Ctrl+S` | Save Session | Save current session |
104
- | `Escape` | Cancel | Cancel current operation |
105
- | `Up` | Edit Previous | Edit previous message |
106
-
107
- ---
108
-
109
- ## Review Mode
110
-
111
- Code diff review shortcuts.
112
-
113
- | Keybind | Action | Description |
114
- | ------- | ------- | -------------------- |
115
- | `Y` | Approve | Approve current diff |
116
- | `N` | Reject | Reject current diff |
117
-
118
- ---
119
-
120
- ## Navigation
121
-
122
- Standard navigation keys with Vim-style alternatives.
123
-
124
- | Keybind | Action | Description |
125
- | ----------- | ----------- | --------------------------- |
126
- | `J` | Scroll Down | Scroll down (Vim-style) |
127
- | `K` | Scroll Up | Scroll up (Vim-style) |
128
- | `Return` | Select | Select current item |
129
- | `Backspace` | Back | Go back |
130
- | `Tab` | Cycle Focus | Cycle focus forward |
131
- | `Left` | Move Left | Move cursor/selection left |
132
- | `Right` | Move Right | Move cursor/selection right |
133
- | `Up` | Move Up | Move cursor/selection up |
134
- | `Down` | Move Down | Move cursor/selection down |
135
-
136
- ---
137
-
138
- ## File Explorer
139
-
140
- File tree navigation and operations.
141
-
142
- | Keybind | Action | Description |
143
- | --------- | -------------- | ------------------------------- |
144
- | `O` | Open File | Open selected file |
145
- | `F` | Focus Explorer | Focus file explorer |
146
- | `E` | Edit File | Edit selected file |
147
- | `R` | Rename | Rename file/folder |
148
- | `D` | Delete | Delete file/folder |
149
- | `C` | Copy Path | Copy file path to clipboard |
150
- | `J` | Move Down | Move selection down (Vim-style) |
151
- | `K` | Move Up | Move selection up (Vim-style) |
152
- | `H` | Collapse | Collapse folder (Vim-style) |
153
- | `L` | Expand | Expand folder (Vim-style) |
154
- | `Shift+F` | Toggle Follow | Toggle follow active file |
155
- | `?` | Toggle Help | Toggle help overlay |
156
- | `Return` | Select | Select/open item |
157
- | `P` | Quick Open | Quick file open |
158
- | `A` | Actions Menu | Open actions menu |
159
-
160
- ---
161
-
162
- ## Terminal
163
-
164
- Terminal interaction shortcuts.
165
-
166
- | Keybind | Action | Description |
167
- | ----------- | ------------ | --------------------------------- |
168
- | `Up` | Scroll Up | Scroll terminal up |
169
- | `Down` | Scroll Down | Scroll terminal down |
170
- | `Ctrl+Up` | History Up | Navigate command history up |
171
- | `Ctrl+Down` | History Down | Navigate command history down |
172
- | `Ctrl+C` | Interrupt | Send interrupt signal (hardcoded) |
173
-
174
- ---
175
-
176
- ## Global Focus Management
177
-
178
- Focus management across the application.
179
-
180
- | Keybind | Action | Description |
181
- | ------------ | ---------------- | ------------------------------- |
182
- | `Ctrl+Space` | Focus Chat Input | Focus chat input field |
183
- | `Ctrl+M` | Focus Navigation | Focus navigation panel |
184
- | `Ctrl+C` | Focus Context | Focus context panel |
185
- | `Ctrl+F` | Focus File Tree | Focus file explorer |
186
- | `Ctrl+I` | Focus Functions | Focus functions panel |
187
- | `Tab` | Cycle Next | Cycle focus to next element |
188
- | `Shift+Tab` | Cycle Previous | Cycle focus to previous element |
189
-
190
- ---
191
-
192
- ## Customization
193
-
194
- ### Configuration File
195
-
196
- **Location:** `~/.ollm/user_keybinds.json`
197
-
198
- **Format:**
199
-
200
- ```json
201
- {
202
- "tabNavigation": {
203
- "tabChat": "ctrl+1",
204
- "tabTools": "ctrl+2"
205
- },
206
- "chat": {
207
- "send": "return",
208
- "newline": "shift+return"
209
- },
210
- "navigation": {
211
- "scrollDown": "j",
212
- "scrollUp": "k"
213
- }
214
- }
215
- ```
216
-
217
- ### Customization via Settings UI
218
-
219
- 1. Open Settings: `Ctrl+9` or `/settings`
220
- 2. Navigate to Keybinds section
221
- 3. Click on keybind to edit
222
- 4. Press new key combination
223
- 5. Save changes
224
-
225
- ### Reset to Defaults
226
-
227
- Use the "Reset All" button in Settings UI or delete `~/.ollm/user_keybinds.json`.
228
-
229
- ---
230
-
231
- ## Known Issues & Conflicts
232
-
233
- ### Potential Conflicts
234
-
235
- **Terminal Conflicts:**
236
-
237
- - Some terminal emulators intercept certain key combinations
238
- - `Ctrl+C` is hardcoded for interrupt (cannot be changed)
239
- - `Ctrl+Z` may be intercepted by terminal for suspend
240
-
241
- **System Conflicts:**
242
-
243
- - `Ctrl+Tab` may be intercepted by browser/OS for tab switching
244
- - `Ctrl+W` may close terminal window
245
- - `Ctrl+Q` may quit terminal application
246
-
247
- **Internal Conflicts:**
248
-
249
- - Some keybinds may conflict with each other
250
- - Focus context determines which keybind takes precedence
251
-
252
- ### Hardcoded Keybinds
253
-
254
- **Known Hardcoded Keybinds:**
255
-
256
- - `Ctrl+C` - Terminal interrupt (in `TerminalContext.tsx`)
257
- - Some `useInput` hooks may have hardcoded keys
258
-
259
- ---
260
-
261
- ## Examples
262
-
263
- ### Custom Keybinds
264
-
265
- **Example 1: Vim-style navigation everywhere**
266
-
267
- ```json
268
- {
269
- "navigation": {
270
- "scrollDown": "j",
271
- "scrollUp": "k",
272
- "left": "h",
273
- "right": "l"
274
- },
275
- "fileExplorer": {
276
- "moveDown": "j",
277
- "moveUp": "k",
278
- "collapse": "h",
279
- "expand": "l"
280
- }
281
- }
282
- ```
283
-
284
- **Example 2: Emacs-style shortcuts**
285
-
286
- ```json
287
- {
288
- "chat": {
289
- "send": "ctrl+return",
290
- "newline": "return"
291
- },
292
- "navigation": {
293
- "moveUp": "ctrl+p",
294
- "moveDown": "ctrl+n",
295
- "left": "ctrl+b",
296
- "right": "ctrl+f"
297
- }
298
- }
299
- ```
300
-
301
- **Example 3: Custom tab navigation**
302
-
303
- ```json
304
- {
305
- "tabNavigation": {
306
- "tabChat": "alt+1",
307
- "tabTools": "alt+2",
308
- "tabFiles": "alt+3"
309
- }
310
- }
311
- ```
312
-
313
- ---
314
-
315
- ## Best Practices
316
-
317
- ### For Users
318
-
319
- 1. **Avoid system conflicts** - Don't override system shortcuts
320
- 2. **Test after changes** - Verify keybinds work as expected
321
- 3. **Keep backups** - Save `user_keybinds.json` before major changes
322
- 4. **Report conflicts** - Help identify problematic keybinds
323
- 5. **Use Settings UI** - Easier than manual JSON editing
324
-
325
- ### For Developers
326
-
327
- 1. **Always use KeybindsContext** - Don't hardcode keybinds
328
- 2. **Check focus context** - Keybinds should respect focus
329
- 3. **Document conflicts** - Note any known conflicts
330
- 4. **Test on multiple platforms** - Windows, macOS, Linux
331
- 5. **Provide alternatives** - Offer mouse/menu alternatives
332
-
333
- ---
334
-
335
- ## Troubleshooting
336
-
337
- ### Keybind Not Working
338
-
339
- 1. Check if keybind conflicts with terminal/system
340
- 2. Check if correct focus context
341
- 3. Check if keybind is hardcoded elsewhere
342
- 4. Try different key combination
343
- 5. Check console for errors
344
-
345
- ### Keybind Conflicts
346
-
347
- 1. Open Settings → Keybinds
348
- 2. Look for duplicate keybinds
349
- 3. Change one of the conflicting keybinds
350
- 4. Save and test
351
-
352
- ### Reset Not Working
353
-
354
- 1. Delete `~/.ollm/user_keybinds.json` manually
355
- 2. Restart application
356
- 3. Defaults will be restored
357
-
358
- ---
359
-
360
- ## File Locations
361
-
362
- | File | Purpose |
363
- | ---------------------------------------------- | ------------------------------ |
364
- | `packages/cli/src/config/keybinds.ts` | Default keybind definitions |
365
- | `packages/cli/src/services/KeybindsService.ts` | Keybind loading/saving service |
366
- | `~/.ollm/user_keybinds.json` | User keybind overrides |
367
-
368
- ---
369
-
370
- **Last Updated:** 2026-01-26
371
- **Version:** 0.1.0
372
- **Next:** [UI Guide](UIGuide.md)