@kitlangton/ghui 0.3.0 → 0.3.3
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/README.md +13 -3
- package/bin/ghui.js +6 -1
- package/dist/index.js +9456 -0
- package/package.json +7 -4
- package/src/App.tsx +0 -2779
- package/src/appCommands.ts +0 -409
- package/src/commands.ts +0 -73
- package/src/config.ts +0 -20
- package/src/date.ts +0 -20
- package/src/domain.ts +0 -149
- package/src/errors.ts +0 -10
- package/src/index.tsx +0 -50
- package/src/keyboard/opentuiAdapter.ts +0 -43
- package/src/keymap/all.ts +0 -116
- package/src/keymap/changedFilesModal.ts +0 -23
- package/src/keymap/closeModal.ts +0 -13
- package/src/keymap/commandPalette.ts +0 -16
- package/src/keymap/commentModal.ts +0 -73
- package/src/keymap/commentThreadModal.ts +0 -24
- package/src/keymap/detailView.ts +0 -30
- package/src/keymap/diffView.ts +0 -93
- package/src/keymap/filterMode.ts +0 -13
- package/src/keymap/helpers.ts +0 -24
- package/src/keymap/labelModal.ts +0 -16
- package/src/keymap/listNav.ts +0 -119
- package/src/keymap/mergeModal.ts +0 -23
- package/src/keymap/openRepositoryModal.ts +0 -13
- package/src/keymap/submitReviewModal.ts +0 -48
- package/src/keymap/themeModal.ts +0 -49
- package/src/mergeActions.ts +0 -88
- package/src/observability.ts +0 -46
- package/src/pullRequestCache.ts +0 -19
- package/src/pullRequestViews.ts +0 -43
- package/src/services/BrowserOpener.ts +0 -22
- package/src/services/Clipboard.ts +0 -46
- package/src/services/CommandRunner.ts +0 -91
- package/src/services/GitHubService.ts +0 -756
- package/src/services/MockGitHubService.ts +0 -182
- package/src/themeStore.ts +0 -60
- package/src/ui/CommandPalette.tsx +0 -176
- package/src/ui/DetailsPane.tsx +0 -656
- package/src/ui/FooterHints.tsx +0 -90
- package/src/ui/LoadingLogo.tsx +0 -75
- package/src/ui/PullRequestDiffPane.tsx +0 -249
- package/src/ui/PullRequestList.tsx +0 -194
- package/src/ui/colors.ts +0 -821
- package/src/ui/commentEditor.ts +0 -126
- package/src/ui/comments.tsx +0 -143
- package/src/ui/diff.ts +0 -650
- package/src/ui/diffStats.tsx +0 -25
- package/src/ui/modals.tsx +0 -964
- package/src/ui/primitives.tsx +0 -350
- package/src/ui/pullRequests.ts +0 -106
- package/src/ui/singleLineInput.ts +0 -26
- package/src/ui/spinner.ts +0 -1
package/README.md
CHANGED
|
@@ -67,10 +67,12 @@ You can also copy `.env.example` to `.env` and edit the values locally.
|
|
|
67
67
|
- `esc`: return from expanded details, leave diff/comment mode, or close modal
|
|
68
68
|
- `r`: refresh
|
|
69
69
|
- `d`: view stacked diff for all changed files
|
|
70
|
-
- `
|
|
71
|
-
- `up` / `down` / `pageup` / `pagedown`: move comment target while
|
|
70
|
+
- `shift-r`: review or approve the selected pull request
|
|
71
|
+
- `up` / `down` / `pageup` / `pagedown`: move comment target while viewing a diff
|
|
72
72
|
- `enter`: open a commented diff line, or start a comment on an uncommented line
|
|
73
|
-
- `
|
|
73
|
+
- `v`: start or clear a multi-line diff comment range
|
|
74
|
+
- `n` / `p`: jump between diff comment threads
|
|
75
|
+
- `f`: open the changed-files navigator while viewing a diff
|
|
74
76
|
- `left` / `right`: choose the deleted or added side while in split diff comment mode
|
|
75
77
|
- `[` / `]`: switch files while viewing or commenting on a diff
|
|
76
78
|
- `s`: toggle draft or ready-for-review state
|
|
@@ -81,3 +83,11 @@ You can also copy `.env.example` to `.env` and edit the values locally.
|
|
|
81
83
|
- `o`: open PR in browser
|
|
82
84
|
- `y`: copy PR metadata
|
|
83
85
|
- `q`: quit
|
|
86
|
+
|
|
87
|
+
Review submission:
|
|
88
|
+
|
|
89
|
+
- Press `shift-r` to open the review modal.
|
|
90
|
+
- Use `j` / `k` or `up` / `down` to choose Comment, Approve, or Request changes.
|
|
91
|
+
- Press `enter` to move to the optional summary area.
|
|
92
|
+
- Press `enter` again to submit, or `shift-enter` to insert a newline.
|
|
93
|
+
- Press `esc` from the summary to return to action selection; press `esc` from action selection to cancel.
|
package/bin/ghui.js
CHANGED
|
@@ -63,4 +63,9 @@ if (command !== undefined) {
|
|
|
63
63
|
process.exit(1)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
const sourceEntry = new URL("../src/index.tsx", import.meta.url)
|
|
67
|
+
if (await Bun.file(sourceEntry).exists()) {
|
|
68
|
+
await import(sourceEntry.href)
|
|
69
|
+
} else {
|
|
70
|
+
await import("../dist/index.js")
|
|
71
|
+
}
|