@brimveyn/aimux-config 0.11.4 → 0.11.6
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 +1 -1
- package/src/actions.ts +2 -0
- package/src/app-types.ts +5 -0
- package/src/defaults.ts +1 -0
- package/src/types.ts +7 -0
package/package.json
CHANGED
package/src/actions.ts
CHANGED
|
@@ -720,6 +720,8 @@ export const toggleGitDiffView: KeyResult = r([{ type: 'git-mode-toggle-diff-vie
|
|
|
720
720
|
|
|
721
721
|
export const toggleGitReviewBase: KeyResult = r([{ type: 'git-mode-toggle-review-base' }])
|
|
722
722
|
|
|
723
|
+
export const toggleGitPaneTab: KeyResult = r([{ type: 'git-pane-toggle-tab' }])
|
|
724
|
+
|
|
723
725
|
export function shiftGitHeadOffset(delta: number): KeyResult {
|
|
724
726
|
return r([
|
|
725
727
|
{ delta, type: 'git-mode-shift-head-offset' },
|
package/src/app-types.ts
CHANGED
|
@@ -361,8 +361,12 @@ export interface GitPaneDiffCountConfig {
|
|
|
361
361
|
enabled: boolean
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
export type GitPaneTab = 'diff' | 'github'
|
|
365
|
+
|
|
364
366
|
export interface GitPaneState {
|
|
365
367
|
diffModeRatio: number
|
|
368
|
+
/** Which face of the pane is showing: the working-copy diff, or the PR. */
|
|
369
|
+
tab: GitPaneTab
|
|
366
370
|
fileListMode: GitFileListMode
|
|
367
371
|
treeCompaction: boolean
|
|
368
372
|
path: GitPanePathConfig
|
|
@@ -1390,6 +1394,7 @@ export type GitModeAction =
|
|
|
1390
1394
|
| { type: 'git-mode-expand-selection' }
|
|
1391
1395
|
| { type: 'git-mode-toggle-file-list-mode' }
|
|
1392
1396
|
| { type: 'git-mode-toggle-tree-compaction' }
|
|
1397
|
+
| { type: 'git-pane-toggle-tab' }
|
|
1393
1398
|
| { type: 'git-mode-set-diff'; key: string; diff: DiffData; hash: string }
|
|
1394
1399
|
| {
|
|
1395
1400
|
type: 'git-mode-set-parsed'
|
package/src/defaults.ts
CHANGED
|
@@ -60,6 +60,7 @@ export function getDefaultKeymapConfig(): ResolvedKeymapConfig {
|
|
|
60
60
|
.map('<C-h>', actions.resizeSidebar(-2), 'Sidebar narrower')
|
|
61
61
|
.map('<C-l>', actions.resizeSidebar(2), 'Sidebar wider')
|
|
62
62
|
.map('G', actions.toggleGitPane, 'Toggle git pane')
|
|
63
|
+
.map('g', actions.toggleGitPaneTab, 'Git pane diff/github')
|
|
63
64
|
.map('<C-d>', actions.enterGitMode, 'Enter git mode')
|
|
64
65
|
.map('<C-j>', actions.resizeGitPane(-0.05), 'Git pane smaller')
|
|
65
66
|
.map('<C-k>', actions.resizeGitPane(0.05), 'Git pane larger')
|
package/src/types.ts
CHANGED
|
@@ -293,6 +293,13 @@ export interface AutoRenameConfig {
|
|
|
293
293
|
* confirmations and ignored (they do not consume an attempt).
|
|
294
294
|
*/
|
|
295
295
|
minPromptWords: number
|
|
296
|
+
/**
|
|
297
|
+
* Extra rules for the branch name generated when a workspace is created from
|
|
298
|
+
* a prompt, appended to the naming prompt (e.g. `"Prefix with the Jira ticket:
|
|
299
|
+
* ABC-123/short-subject"`). They override the built-in `<type>/<subject>`
|
|
300
|
+
* convention; the result is then only checked for being a valid git ref.
|
|
301
|
+
*/
|
|
302
|
+
branchInstructions?: string
|
|
296
303
|
}
|
|
297
304
|
|
|
298
305
|
export interface MultiRepoConfig {
|