feat: add auto lookback mode (#7)

* feat: add auto lookback mode

Automatically shows full terminal history after idle timeout,
returns to truncated view when new output arrives.

- Add auto_lookback_timeout_ms config option (default: 1000ms)
- Add --auto-lookback-timeout CLI flag
- Set to 0 to disable the feature

* intermediate

* auto lookback

---------

Co-authored-by: Ilya Sinkin <ilyasinkin2002@yandex.kz>
This commit is contained in:
David Beesley
2026-01-19 18:33:24 +13:00
committed by GitHub
parent a824eaea77
commit e0c04ae8dd
5 changed files with 60 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ Press `Ctrl+6` (or your configured key) to enter lookback mode:
When you exit lookback mode, any cached output is processed and the current state is displayed.
**Auto-lookback**: After 5 seconds of idle (no new renders), the full history is automatically displayed so you can scroll back without pressing any keys.
## Configuration
Create `~/.config/claude-chill.toml`: