@ondrej-svec/hog 1.16.0 → 1.16.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 CHANGED
@@ -2149,6 +2149,29 @@ function useKeyboard({
2149
2149
  if (handleErrorAction("dismiss")) return;
2150
2150
  }
2151
2151
  if (input2 === "r" && handleErrorAction("retry")) return;
2152
+ if (ui.canAct || ui.state.mode === "overlay:detail") {
2153
+ if (input2 === "y") {
2154
+ handleCopyLink();
2155
+ return;
2156
+ }
2157
+ if (input2 === "o") {
2158
+ handleSlack();
2159
+ return;
2160
+ }
2161
+ if (input2 === "c") {
2162
+ if (selectedIssue) {
2163
+ multiSelect.clear();
2164
+ ui.enterComment();
2165
+ }
2166
+ return;
2167
+ }
2168
+ if (input2 === "e") {
2169
+ if (selectedIssue) {
2170
+ handleEnterEditIssue();
2171
+ }
2172
+ return;
2173
+ }
2174
+ }
2152
2175
  if (ui.canAct) {
2153
2176
  const digit = parseInt(input2, 10);
2154
2177
  if (!Number.isNaN(digit) && digit >= 0 && digit <= 4) {
@@ -2173,14 +2196,6 @@ function useKeyboard({
2173
2196
  refresh();
2174
2197
  return;
2175
2198
  }
2176
- if (input2 === "o") {
2177
- handleSlack();
2178
- return;
2179
- }
2180
- if (input2 === "y") {
2181
- handleCopyLink();
2182
- return;
2183
- }
2184
2199
  if (input2 === "p") {
2185
2200
  handlePick();
2186
2201
  return;
@@ -2197,13 +2212,6 @@ function useKeyboard({
2197
2212
  handleToggleLog();
2198
2213
  return;
2199
2214
  }
2200
- if (input2 === "c") {
2201
- if (selectedIssue) {
2202
- multiSelect.clear();
2203
- ui.enterComment();
2204
- }
2205
- return;
2206
- }
2207
2215
  if (input2 === "m") {
2208
2216
  if (selectedIssue && selectedRepoStatusOptionsLength > 0) {
2209
2217
  multiSelect.clear();
@@ -2241,12 +2249,6 @@ function useKeyboard({
2241
2249
  handleEnterFuzzyPicker();
2242
2250
  return;
2243
2251
  }
2244
- if (input2 === "e") {
2245
- if (selectedIssue) {
2246
- handleEnterEditIssue();
2247
- }
2248
- return;
2249
- }
2250
2252
  if (input2 === " ") {
2251
2253
  const id = nav.selectedId;
2252
2254
  if (id) {
@@ -2733,7 +2735,7 @@ function uiReducer(state, action) {
2733
2735
  if (state.mode !== "normal") return state;
2734
2736
  return { ...state, mode: "search", previousMode: "normal" };
2735
2737
  case "ENTER_COMMENT":
2736
- if (state.mode !== "normal") return state;
2738
+ if (state.mode !== "normal" && state.mode !== "overlay:detail") return state;
2737
2739
  return { ...state, mode: "overlay:comment", previousMode: "normal" };
2738
2740
  case "ENTER_STATUS":
2739
2741
  return enterStatusMode(state);
@@ -2761,7 +2763,7 @@ function uiReducer(state, action) {
2761
2763
  if (state.mode !== "normal") return state;
2762
2764
  return { ...state, mode: "overlay:fuzzyPicker", previousMode: "normal" };
2763
2765
  case "ENTER_EDIT_ISSUE":
2764
- if (state.mode !== "normal") return state;
2766
+ if (state.mode !== "normal" && state.mode !== "overlay:detail") return state;
2765
2767
  return { ...state, mode: "overlay:editIssue", previousMode: "normal" };
2766
2768
  case "ENTER_DETAIL":
2767
2769
  if (state.mode !== "normal") return state;
@@ -7413,7 +7415,7 @@ function resolveProjectId(projectId) {
7413
7415
  process.exit(1);
7414
7416
  }
7415
7417
  var program = new Command();
7416
- program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.16.0").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7418
+ program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.16.2").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7417
7419
  const opts = thisCommand.opts();
7418
7420
  if (opts.json) setFormat("json");
7419
7421
  if (opts.human) setFormat("human");