Add --models parameter for quick model cycling with Ctrl+P

- Add --models CLI arg accepting comma-separated patterns
- Implement smart matching: prefers aliases over dated versions
- Add Ctrl+P to cycle through scoped models (or all if no scope)
- Show model scope hint at startup
- Update help text with examples

Co-authored-by: Tino Ehrich <tino.ehrich@hey.com>
This commit is contained in:
Mario Zechner 2025-11-20 12:57:20 +01:00
parent 097ff25ed4
commit fecf9734b0
3 changed files with 170 additions and 3 deletions

View file

@ -7,8 +7,15 @@ export class CustomEditor extends Editor {
public onEscape?: () => void;
public onCtrlC?: () => void;
public onShiftTab?: () => void;
public onCtrlP?: () => void;
handleInput(data: string): void {
// Intercept Ctrl+P for model cycling
if (data === "\x10" && this.onCtrlP) {
this.onCtrlP();
return;
}
// Intercept Shift+Tab for thinking level cycling
if (data === "\x1b[Z" && this.onShiftTab) {
this.onShiftTab();