@xynogen/pix-search 0.2.2 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-search",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Pi extension — @ file picker overlay with fuzzy + git recency ranking",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/extension.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  import { CustomEditor, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
10
+ import { showTransientMessage } from "@xynogen/pix-pretty/transient-error";
10
11
  import { attachPicker } from "./editor.ts";
11
12
  import { FilePicker } from "./picker.ts";
12
13
  import { withDirectories } from "./rank.ts";
@@ -58,9 +59,12 @@ export default function (pi: ExtensionAPI): void {
58
59
  // ponytail: cursor access requires CustomEditor. Keep other editors intact;
59
60
  // add a public cursor adapter if a non-CustomEditor integration is needed.
60
61
  if (editor instanceof CustomEditor) {
61
- attachPicker(editor, tui, openPicker, (message) => ctx.ui.notify(message, "error"));
62
+ attachPicker(editor, tui, openPicker, (message) =>
63
+ showTransientMessage(ctx.ui, message, "error"),
64
+ );
62
65
  } else {
63
- ctx.ui.notify(
66
+ showTransientMessage(
67
+ ctx.ui,
64
68
  "pix-search: @ picker requires a CustomEditor; existing editor kept.",
65
69
  "warning",
66
70
  );
package/src/picker.ts CHANGED
@@ -233,6 +233,9 @@ export class FilePicker {
233
233
  lines: rows,
234
234
  color: (s) => theme.fg("accent", s),
235
235
  fg: (s) => theme.fg("text", s),
236
+ // Solid modal fill so the terminal doesn't bleed through, matching the
237
+ // gate/confirm/ask overlays. Skipped when the theme lacks bg (mock themes).
238
+ bg: theme.bg ? (s) => theme.bg?.("customMessageBg", s) ?? s : undefined,
236
239
  });
237
240
  this.cachedWidth = width;
238
241
  return this.cachedLines;