@kud/jira-cli 0.5.1 → 0.5.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/README.md +1 -1
- package/dist/index.js +2 -2
- package/dist/{tui-K7CKDM5F.js → tui-XQKRS4AW.js} +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ jira
|
|
|
51
51
|
|
|
52
52
|
Your issues as a board: three tabs — **To do**, **In progress**, **Done** — filed by Jira's status *category*, so it works on any instance without knowing what your board calls its columns. Rows hang under their epic, carry a type pill, a priority glyph (`▲` high, `▼` low) and how long since they last moved. Closed work from the last fortnight is on the Done tab; `a` loads everything.
|
|
53
53
|
|
|
54
|
-
`↑↓` to move, `⇥` to switch tab, `enter` to open, `?` for the legend, `r` to refresh, `q` to quit.
|
|
54
|
+
`↑↓` to move, `←→` (or `⇥`) to switch tab, `enter` to open, `?` for the legend, `r` to refresh, `q` to quit.
|
|
55
55
|
|
|
56
56
|
`/` searches. Plain words narrow the list as you type and, on `enter`, run as `text ~ "…"` within your issues — so a match in a comment counts too. Anything shaped like JQL (`status = Done`, `labels in (a, b)`, `ORDER BY …`) is sent as-is and replaces the scope; the tag at the end of the line says which reading it took, and `⇥` flips it. A query Jira rejects shows Jira's own message under the box and keeps your text for editing. `esc` clears the search.
|
|
57
57
|
|
package/dist/index.js
CHANGED
|
@@ -888,7 +888,7 @@ var interactiveArgs = (argv) => {
|
|
|
888
888
|
var main = async () => {
|
|
889
889
|
const { screen, mock, isBare } = interactiveArgs(process.argv);
|
|
890
890
|
if (screen === "list" && isBare) {
|
|
891
|
-
const { SCREENS } = await import("./tui-
|
|
891
|
+
const { SCREENS } = await import("./tui-XQKRS4AW.js");
|
|
892
892
|
process.stdout.write(`${SCREENS.join("\n")}
|
|
893
893
|
`);
|
|
894
894
|
return;
|
|
@@ -898,7 +898,7 @@ var main = async () => {
|
|
|
898
898
|
program.outputHelp();
|
|
899
899
|
return;
|
|
900
900
|
}
|
|
901
|
-
const { runTui } = await import("./tui-
|
|
901
|
+
const { runTui } = await import("./tui-XQKRS4AW.js");
|
|
902
902
|
const [, key] = (screen ?? "").split(":");
|
|
903
903
|
await runTui({
|
|
904
904
|
screen: screen?.startsWith("detail") ? "detail" : "issues",
|
|
@@ -183,7 +183,7 @@ var IssueList = ({
|
|
|
183
183
|
const counts = countsFor(narrowed);
|
|
184
184
|
const tabItems = TABS.map((t) => ({ ...t, count: counts[t.value] }));
|
|
185
185
|
const listFocused = !search.open && !legend;
|
|
186
|
-
const { active } = useTabs(tabItems, {
|
|
186
|
+
const { active, setActive } = useTabs(tabItems, {
|
|
187
187
|
initial: "doing",
|
|
188
188
|
isActive: listFocused
|
|
189
189
|
});
|
|
@@ -215,6 +215,11 @@ var IssueList = ({
|
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
if (key.return && issues[cursor]) onOpen(issues[cursor].row.key);
|
|
218
|
+
if (key.leftArrow || key.rightArrow) {
|
|
219
|
+
const at = TABS.findIndex((t) => t.value === tab);
|
|
220
|
+
const next = (at + (key.leftArrow ? -1 : 1) + TABS.length) % TABS.length;
|
|
221
|
+
setActive(TABS[next].value);
|
|
222
|
+
}
|
|
218
223
|
if (input === "/")
|
|
219
224
|
setSearch((s) => ({
|
|
220
225
|
...s,
|
|
@@ -244,7 +249,7 @@ var IssueList = ({
|
|
|
244
249
|
["esc", "cancel"]
|
|
245
250
|
] : legend ? [["?", "close"]] : [
|
|
246
251
|
["\u2191\u2193", "move"],
|
|
247
|
-
["\
|
|
252
|
+
["\u2190\u2192", "tab"],
|
|
248
253
|
["enter", "open"],
|
|
249
254
|
["/", scope.kind === "search" ? "edit" : "search"],
|
|
250
255
|
...scope.kind === "search" ? [["esc", "clear"]] : [["a", showingAll ? "recent only" : "everything"]],
|