@@ -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,16 @@ 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+ "--with-nth" ,
264+ "2.." ,
265+ "--border" ,
266+ "rounded" ,
267+ "--border-label" ,
268+ border_label ,
269+ "--pointer" ,
270+ "▶" ,
263271 "--header" ,
264272 "Select an endpoint (type to search)" ,
265273 "--preview" ,
@@ -511,7 +519,7 @@ def format_history_for_fzf(entries: list[dict]) -> str:
511519 url = entry .get ("url" , "" )
512520 summary = entry .get ("summary" , "" )
513521 lines .append (
514- f"{ real_idx :04d} { ts } { color } { method :7s} { reset } [{ status_str :>3s} ] { url } { summary } "
522+ f"{ real_idx :04d} \t { ts } { color } { method :7s} { reset } [{ status_str :>3s} ] { url } { summary } "
515523 )
516524 return "\n " .join (lines )
517525
@@ -525,11 +533,16 @@ def pick_history_entry(entries: list[dict]) -> dict | None:
525533 "fzf" ,
526534 "--ansi" ,
527535 "--reverse" ,
528- "--nth" , "2.." ,
529- "--with-nth" , "2.." ,
530- "--border" , "rounded" ,
531- "--border-label" , " history " ,
532- "--pointer" , "▶" ,
536+ "--delimiter" ,
537+ "\t " ,
538+ "--with-nth" ,
539+ "2.." ,
540+ "--border" ,
541+ "rounded" ,
542+ "--border-label" ,
543+ " history " ,
544+ "--pointer" ,
545+ "▶" ,
533546 "--header" ,
534547 "Select a request to replay (type to search)" ,
535548 "--preview" ,
0 commit comments