@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.
Files changed (2) hide show
  1. package/dist/cli.js +31 -24
  2. 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__ */ jsxs(Box, { children: [/* @__PURE__ */ jsxs(Text, {
872
- color: selected ? "cyan" : void 0,
873
- inverse: selected,
874
- children: [
875
- selected ? "▸ " : " ",
876
- entry.app,
877
- " · ",
878
- entry.action
879
- ]
880
- }), /* @__PURE__ */ jsxs(Text, {
881
- color: "gray",
882
- children: [" ", right]
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__ */ jsxs(Box, { children: [
914
- /* @__PURE__ */ jsx(Text, {
915
- color: "cyan",
916
- children: "search: "
917
- }),
918
- /* @__PURE__ */ jsx(Text, { children: query }),
919
- /* @__PURE__ */ jsx(Text, {
920
- inverse: true,
921
- children: " "
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arthony/keybook",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },