pi-diff-review 0.1.2 → 0.1.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 +5 -1
- package/package.json +1 -1
- package/src/review-component.ts +3 -3
package/README.md
CHANGED
|
@@ -34,5 +34,9 @@ pi install https://github.com/cmpadden/pi-diff-review
|
|
|
34
34
|
- `n/p` to jump hunks
|
|
35
35
|
- `c` to add or edit a comment for the current line or selected range
|
|
36
36
|
- `x` to delete a comment for the current line or selected range
|
|
37
|
-
- `
|
|
37
|
+
- `Enter` to submit comments back to pi
|
|
38
38
|
- `q` to exit
|
|
39
|
+
|
|
40
|
+
## Release
|
|
41
|
+
|
|
42
|
+
See [RELEASE.md](./RELEASE.md).
|
package/package.json
CHANGED
package/src/review-component.ts
CHANGED
|
@@ -150,7 +150,7 @@ export class ReviewComponent {
|
|
|
150
150
|
this.startEditMode();
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
|
-
if (data
|
|
153
|
+
if (matchesKey(data, "enter")) {
|
|
154
154
|
const comments = [...this.comments.values()].sort((a, b) =>
|
|
155
155
|
a.id.localeCompare(b.id),
|
|
156
156
|
);
|
|
@@ -171,8 +171,8 @@ export class ReviewComponent {
|
|
|
171
171
|
this.editMode
|
|
172
172
|
? `${this.lines.length} lines • ${this.comments.size} comments • editing comment • Enter save • Esc/Ctrl+C cancel`
|
|
173
173
|
: this.hasSelection()
|
|
174
|
-
? `${this.lines.length} lines • ${this.comments.size} comments • J/K extend • Esc clear selection • c comment range •
|
|
175
|
-
: `${this.lines.length} lines • ${this.comments.size} comments • j/k move • ctrl-u/d page • t unified/split • J/K extend • c comment • x delete • n/p hunk •
|
|
174
|
+
? `${this.lines.length} lines • ${this.comments.size} comments • J/K extend • Esc clear selection • c comment range • Enter submit`
|
|
175
|
+
: `${this.lines.length} lines • ${this.comments.size} comments • j/k move • ctrl-u/d page • t unified/split • J/K extend • c comment • x delete • n/p hunk • Enter submit • q quit`,
|
|
176
176
|
),
|
|
177
177
|
width,
|
|
178
178
|
),
|