@arthony/keybook 0.3.0 → 0.3.1
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 +31 -24
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -802,6 +802,7 @@ function Footer({ flash, errorCount, resultCount }) {
|
|
|
802
802
|
justifyContent: "space-between",
|
|
803
803
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
804
804
|
color: "gray",
|
|
805
|
+
wrap: "truncate-end",
|
|
805
806
|
children: [
|
|
806
807
|
"↑↓ move ⏎ copy ⌃O add ⎋ quit ⌥⌫/⌃W del ⌃U clear (",
|
|
807
808
|
resultCount,
|
|
@@ -868,19 +869,22 @@ function PreviewPane({ entry, width = "50%" }) {
|
|
|
868
869
|
//#region src/tui/ResultRow.tsx
|
|
869
870
|
function ResultRow({ entry, selected }) {
|
|
870
871
|
const right = entry.keys ?? "recipe";
|
|
871
|
-
return /* @__PURE__ */
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
872
|
+
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text, {
|
|
873
|
+
wrap: "truncate-end",
|
|
874
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
875
|
+
color: selected ? "cyan" : void 0,
|
|
876
|
+
inverse: selected,
|
|
877
|
+
children: [
|
|
878
|
+
selected ? "▸ " : " ",
|
|
879
|
+
entry.app,
|
|
880
|
+
" · ",
|
|
881
|
+
entry.action
|
|
882
|
+
]
|
|
883
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
884
|
+
color: "gray",
|
|
885
|
+
children: [" ", right]
|
|
886
|
+
})]
|
|
887
|
+
}) });
|
|
884
888
|
}
|
|
885
889
|
//#endregion
|
|
886
890
|
//#region src/tui/ResultList.tsx
|
|
@@ -910,17 +914,20 @@ function ResultList({ results, selected, query, height = 12, width = "50%" }) {
|
|
|
910
914
|
//#endregion
|
|
911
915
|
//#region src/tui/SearchInput.tsx
|
|
912
916
|
function SearchInput({ query }) {
|
|
913
|
-
return /* @__PURE__ */
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
917
|
+
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text, {
|
|
918
|
+
wrap: "truncate-end",
|
|
919
|
+
children: [
|
|
920
|
+
/* @__PURE__ */ jsx(Text, {
|
|
921
|
+
color: "cyan",
|
|
922
|
+
children: "search: "
|
|
923
|
+
}),
|
|
924
|
+
/* @__PURE__ */ jsx(Text, { children: query }),
|
|
925
|
+
/* @__PURE__ */ jsx(Text, {
|
|
926
|
+
inverse: true,
|
|
927
|
+
children: " "
|
|
928
|
+
})
|
|
929
|
+
]
|
|
930
|
+
}) });
|
|
924
931
|
}
|
|
925
932
|
//#endregion
|
|
926
933
|
//#region src/tui/input.ts
|