@@ -136,7 +136,7 @@ def format_for_fzf(endpoints: list[dict]) -> str:
136136 }
137137 color = colors .get (ep ["method" ], "\033 [0m" )
138138 reset = "\033 [0m"
139- lines .append (f"{ i :04d} { color } { method } { reset } { path } { summary } " )
139+ lines .append (f"{ i :04d} \t { color } { method } { reset } { path } { summary } " )
140140 return "\n " .join (lines )
141141
142142
@@ -245,6 +245,9 @@ def pick_endpoint(endpoints: list[dict], spec: dict, script_path: str) -> dict |
245245 json .dump (spec , spec_file )
246246 spec_file_name = spec_file .name
247247
248+ api_title = spec .get ("info" , {}).get ("title" )
249+ border_label = f" apick — { api_title } " if api_title else " apick "
250+
248251 try :
249252 preview_cmd = (
250253 f"{ sys .executable } { script_path } --_preview {{1}} --_spec-file { spec_file_name } "
@@ -255,11 +258,18 @@ def pick_endpoint(endpoints: list[dict], spec: dict, script_path: str) -> dict |
255258 "fzf" ,
256259 "--ansi" ,
257260 "--reverse" ,
258- "--nth" , "2.." ,
259- "--with-nth" , "2.." ,
260- "--border" , "rounded" ,
261- "--border-label" , " apick " ,
262- "--pointer" , "▶" ,
261+ "--delimiter" ,
262+ "\t " ,
263+ "--nth" ,
264+ "2.." ,
265+ "--with-nth" ,
266+ "2.." ,
267+ "--border" ,
268+ "rounded" ,
269+ "--border-label" ,
270+ border_label ,
271+ "--pointer" ,
272+ "▶" ,
263273 "--header" ,
264274 "Select an endpoint (type to search)" ,
265275 "--preview" ,
@@ -511,7 +521,7 @@ def format_history_for_fzf(entries: list[dict]) -> str:
511521 url = entry .get ("url" , "" )
512522 summary = entry .get ("summary" , "" )
513523 lines .append (
514- f"{ real_idx :04d} { ts } { color } { method :7s} { reset } [{ status_str :>3s} ] { url } { summary } "
524+ f"{ real_idx :04d} \t { ts } { color } { method :7s} { reset } [{ status_str :>3s} ] { url } { summary } "
515525 )
516526 return "\n " .join (lines )
517527
@@ -525,11 +535,18 @@ def pick_history_entry(entries: list[dict]) -> dict | None:
525535 "fzf" ,
526536 "--ansi" ,
527537 "--reverse" ,
528- "--nth" , "2.." ,
529- "--with-nth" , "2.." ,
530- "--border" , "rounded" ,
531- "--border-label" , " history " ,
532- "--pointer" , "▶" ,
538+ "--delimiter" ,
539+ "\t " ,
540+ "--nth" ,
541+ "2.." ,
542+ "--with-nth" ,
543+ "2.." ,
544+ "--border" ,
545+ "rounded" ,
546+ "--border-label" ,
547+ " history " ,
548+ "--pointer" ,
549+ "▶" ,
533550 "--header" ,
534551 "Select a request to replay (type to search)" ,
535552 "--preview" ,
0 commit comments