Skip to content

Commit cd571c0

Browse files
committed
style: polish fzf UI with border, pointer, and cleaner search
- Add --nth/--with-nth to hide internal index from display and search - Add rounded border with labels for endpoint picker and history - Use ▶ pointer instead of default cursor - Regenerate demo GIF
1 parent 3b5541c commit cd571c0

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

apick.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ def pick_endpoint(endpoints: list[dict], spec: dict, script_path: str) -> dict |
255255
"fzf",
256256
"--ansi",
257257
"--reverse",
258+
"--nth", "2..",
259+
"--with-nth", "2..",
260+
"--border", "rounded",
261+
"--border-label", " apick ",
262+
"--pointer", "▶",
258263
"--header",
259264
"Select an endpoint (type to search)",
260265
"--preview",
@@ -520,10 +525,15 @@ def pick_history_entry(entries: list[dict]) -> dict | None:
520525
"fzf",
521526
"--ansi",
522527
"--reverse",
528+
"--nth", "2..",
529+
"--with-nth", "2..",
530+
"--border", "rounded",
531+
"--border-label", " history ",
532+
"--pointer", "▶",
523533
"--header",
524534
"Select a request to replay (type to search)",
525535
"--preview",
526-
"echo {}",
536+
"echo {2..}",
527537
"--preview-window",
528538
"down:3:wrap",
529539
],

demo.gif

-838 KB
Loading

0 commit comments

Comments
 (0)