@kitlangton/ghui 0.1.17 → 0.1.18
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 +11 -4
- package/package.json +2 -1
- package/src/App.tsx +879 -141
- package/src/domain.ts +46 -0
- package/src/services/CommandRunner.ts +8 -1
- package/src/services/GitHubService.ts +280 -184
- package/src/ui/DetailsPane.tsx +26 -25
- package/src/ui/FooterHints.tsx +52 -0
- package/src/ui/PullRequestDiffPane.tsx +105 -33
- package/src/ui/PullRequestList.tsx +28 -9
- package/src/ui/colors.ts +41 -0
- package/src/ui/commentEditor.ts +126 -0
- package/src/ui/diff.ts +204 -7
- package/src/ui/modals.tsx +236 -9
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Terminal UI for keeping up with your open GitHub pull requests across repositories.
|
|
4
4
|
|
|
5
|
-
`ghui` gives you one keyboard-driven place to review PR details, inspect diffs, manage labels, toggle draft state, merge, open PRs in GitHub, and copy PR metadata without leaving the terminal.
|
|
5
|
+
`ghui` gives you one keyboard-driven place to review PR details, inspect diffs, leave diff comments, manage labels, toggle draft state, merge, open PRs in GitHub, and copy PR metadata without leaving the terminal.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -53,11 +53,18 @@ You can also copy `.env.example` to `.env` and edit the values locally.
|
|
|
53
53
|
- `k` / `j`: move selection
|
|
54
54
|
- `gg` / `G`: jump to first or last pull request
|
|
55
55
|
- `ctrl-u` / `ctrl-d`: page up or down
|
|
56
|
+
- `tab` / `shift-tab`: switch PR queue
|
|
56
57
|
- `/`: filter
|
|
57
|
-
- `enter`: expand details
|
|
58
|
-
- `esc`: return from expanded details or close modal
|
|
58
|
+
- `enter`: expand details; normal PR actions still work while details are expanded
|
|
59
|
+
- `esc`: return from expanded details, leave diff/comment mode, or close modal
|
|
59
60
|
- `r`: refresh
|
|
60
|
-
- `d`: view diff
|
|
61
|
+
- `d`: view stacked diff for all changed files
|
|
62
|
+
- `c`: enter or exit diff comment mode while viewing a diff
|
|
63
|
+
- `up` / `down` / `pageup` / `pagedown`: move comment target while in diff comment mode
|
|
64
|
+
- `enter`: open a commented diff line, or start a comment on an uncommented line
|
|
65
|
+
- `a`: add a comment while in diff comment mode
|
|
66
|
+
- `left` / `right`: choose the deleted or added side while in split diff comment mode
|
|
67
|
+
- `[` / `]`: switch files while viewing or commenting on a diff
|
|
61
68
|
- `s`: toggle draft or ready-for-review state
|
|
62
69
|
- `m`: merge
|
|
63
70
|
- `x`: close with confirmation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitlangton/ghui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Terminal UI for GitHub pull requests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "bun --watch src/index.tsx",
|
|
39
39
|
"start": "bun run src/index.tsx",
|
|
40
|
+
"test": "bun test test",
|
|
40
41
|
"typecheck": "tsc --noEmit"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|