@ondrej-svec/hog 1.9.1 → 1.9.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/dist/cli.js +12 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5402,9 +5402,17 @@ function Dashboard({ config: config2, options, activeProfile }) {
|
|
|
5402
5402
|
scrollRef.current = selectedRowIdx - viewportHeight + 1;
|
|
5403
5403
|
}
|
|
5404
5404
|
if (scrollRef.current > 0 && scrollRef.current === selectedRowIdx) {
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5405
|
+
let subIdx = -1;
|
|
5406
|
+
for (let i = selectedRowIdx - 1; i >= 0; i--) {
|
|
5407
|
+
const row = flatRows[i];
|
|
5408
|
+
if (!row || row.type === "sectionHeader") break;
|
|
5409
|
+
if (row.type === "subHeader") {
|
|
5410
|
+
subIdx = i;
|
|
5411
|
+
break;
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
if (subIdx >= 0 && selectedRowIdx - subIdx < viewportHeight) {
|
|
5415
|
+
scrollRef.current = subIdx;
|
|
5408
5416
|
}
|
|
5409
5417
|
}
|
|
5410
5418
|
}
|
|
@@ -6934,7 +6942,7 @@ function resolveProjectId(projectId) {
|
|
|
6934
6942
|
process.exit(1);
|
|
6935
6943
|
}
|
|
6936
6944
|
var program = new Command();
|
|
6937
|
-
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.
|
|
6945
|
+
program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.9.2").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
|
|
6938
6946
|
const opts = thisCommand.opts();
|
|
6939
6947
|
if (opts.json) setFormat("json");
|
|
6940
6948
|
if (opts.human) setFormat("human");
|