Commit Graph

6 Commits

Author SHA1 Message Date
rob f6bb863f60 Add piped input support and documentation for cf picker
- Support piped input: cat file.txt | cf | cf
- Write picker UI to stderr when stdout is piped
- Use /dev/tty for keyboard input independent of stdin
- Add select() for non-blocking escape sequence detection
- Document cf in CLI reference and Getting Started

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:34:55 -04:00
rob 9f3227f7ef Swap Tab/Enter in argument picker: Tab edits, Enter runs
More consistent with main picker flow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:52:52 -04:00
rob 356a47eebc Make cf dropdown scroll instead of showing +N more
Arrow past the last visible item now scrolls the list smoothly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:49:32 -04:00
rob df1d3ace23 Rewrite cf as lightweight inline dropdown
- No longer fullscreen - just a small dropdown below cursor
- Shows max 8 items at a time with "+N more" indicator
- No curses dependency - uses simple ANSI escape codes
- Minimal UI: just type to filter, arrows to navigate
- Cleans up after itself when done
- Much more integrated terminal feel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:46:04 -04:00
rob 992c473939 Improve cf picker: Enter runs, Tab opens argument editor
- Enter: immediately runs the selected tool
- Tab: opens argument picker for tools with arguments
- Shows ⚙ indicator for tools that have arguments
- Argument editor lets you set values with Enter to edit, Tab to run
- Esc in argument picker goes back to tool list
- Footer changes based on whether selected tool has args

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:39:37 -04:00
rob 7f0dabd328 Add interactive fuzzy tool picker (cf command)
New `cf` command provides a fuzzy-searchable tool picker:
- Type to filter tools by name or description
- Arrow keys to navigate
- Enter/Tab to select and run
- ? to show arguments for selected tool
- Escape to cancel

Uses curses for a lightweight terminal UI with no extra dependencies.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:26:46 -04:00