@brimveyn/aimux-config 0.6.12 → 0.8.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimveyn/aimux-config",
3
- "version": "0.6.12",
3
+ "version": "0.8.2",
4
4
  "description": "TypeScript configuration API for aimux — keymaps, themes, and backends with a fluent builder.",
5
5
  "keywords": [
6
6
  "aimux",
package/src/actions.ts CHANGED
@@ -45,6 +45,12 @@ export function helpModal(scope?: ModeId): KeyResult {
45
45
  return r([{ scope, type: 'open-help-modal' }])
46
46
  }
47
47
 
48
+ export const openFlashJump: KeyResult = r(
49
+ [{ type: 'open-flash-jump-modal' }],
50
+ [],
51
+ 'modal.flash-jump'
52
+ )
53
+
48
54
  export const toggleSidebar: KeyResult = r([{ type: 'toggle-sidebar' }])
49
55
  export const toggleGitPane: KeyResult = r([{ type: 'toggle-git-pane' }])
50
56
  export const toggleSessionBar: KeyResult = r([{ type: 'toggle-session-bar' }])
package/src/defaults.ts CHANGED
@@ -55,6 +55,7 @@ export function getDefaultKeymapConfig(): ResolvedKeymapConfig {
55
55
  .map('K', actions.reorderSession(-1), 'Move workspace up')
56
56
  .map('r', actions.renameTab, 'Rename tab')
57
57
  .map('i', actions.enterInsert, 'Focus terminal')
58
+ .map('S', actions.openFlashJump, 'Flash jump')
58
59
  .map('?', actions.helpModal(), 'Help')
59
60
  )
60
61
 
@@ -226,6 +227,16 @@ export function getDefaultKeymapConfig(): ResolvedKeymapConfig {
226
227
  .map('y', actions.confirmWorktreeDeleteModal, 'Delete worktree')
227
228
  )
228
229
 
230
+ // -----------------------------------------------------------------------
231
+ // Modal: flash-jump (flash.nvim-style label jump)
232
+ // -----------------------------------------------------------------------
233
+ .mode('modal.flash-jump', (m) =>
234
+ m
235
+ .map('<Esc>', actions.closeModal, 'Cancel')
236
+ .map('<Space>', actions.closeModal, 'Cancel')
237
+ .passthrough()
238
+ )
239
+
229
240
  // -----------------------------------------------------------------------
230
241
  // Modal: rename-tab
231
242
  // -----------------------------------------------------------------------
package/src/types.ts CHANGED
@@ -33,10 +33,17 @@ export type ModeId =
33
33
  | 'modal.worktree-move'
34
34
  | 'modal.worktree-move-confirm'
35
35
  | 'modal.ai-usage'
36
+ | 'modal.flash-jump'
36
37
 
37
38
  // ─── Primitive app types ──────────────────────────────────────────────────────
38
39
 
39
- export type BuiltinAssistantId = 'claude' | 'codex' | 'opencode' | 'terminal' | 'antigravity'
40
+ export type BuiltinAssistantId =
41
+ | 'claude'
42
+ | 'codex'
43
+ | 'opencode'
44
+ | 'grok'
45
+ | 'terminal'
46
+ | 'antigravity'
40
47
  export type AssistantId = BuiltinAssistantId | (string & {})
41
48
  export type TabStatus = 'starting' | 'running' | 'disconnected' | 'error'
42
49
 
@@ -422,6 +429,29 @@ export interface ModalWorktreeDeleteConfirm extends ModalBase {
422
429
  force: boolean
423
430
  }
424
431
 
432
+ export type FlashJumpTargetKind = 'workspace' | 'worktree' | 'tab'
433
+
434
+ export interface FlashJumpTarget {
435
+ kind: FlashJumpTargetKind
436
+ sessionIndex: number
437
+ sessionId: string
438
+ worktreeId?: string
439
+ tabId?: string
440
+ }
441
+
442
+ export interface FlashLabel {
443
+ key: string
444
+ label: string
445
+ target: FlashJumpTarget
446
+ }
447
+
448
+ export interface ModalFlashJump extends ModalBase {
449
+ type: 'flash-jump'
450
+ labels: FlashLabel[]
451
+ buffer: string
452
+ pendingJump: FlashJumpTarget | null
453
+ }
454
+
425
455
  export type ModalState =
426
456
  | ModalClosed
427
457
  | ModalNewTab
@@ -441,6 +471,7 @@ export type ModalState =
441
471
  | ModalWorktreeMove
442
472
  | ModalWorktreeMoveConfirm
443
473
  | ModalWorktreeDeleteConfirm
474
+ | ModalFlashJump
444
475
 
445
476
  export interface LayoutState {
446
477
  terminalCols: number
@@ -581,6 +612,8 @@ export type ModalAction =
581
612
  closeTabs: boolean
582
613
  force: boolean
583
614
  }
615
+ | { type: 'open-flash-jump-modal' }
616
+ | { type: 'clear-flash-jump-pending' }
584
617
 
585
618
  export type SessionAction =
586
619
  | { type: 'load-session'; sessionId: string; workspaceSnapshot?: WorkspaceSnapshotV1 }