From a3dfe2b55ae57a9cd065cef717158e3d21b761da Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Apr 2026 12:14:39 +0530 Subject: [PATCH] Make sticky_header default to yes --- docs/changelog.rst | 2 +- kittens/diff/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 57f1dc460..97ef657bf 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -253,7 +253,7 @@ Detailed list of changes - macOS: Fix occasional phantom cursors being drawn on screen (:iss:`9725`) -- diff kitten: A new option :opt:`kitten-diff.sticky_header` to pin the current file's name to the top of the screen as you scroll through a multi-file diff (:pull:`9891`) +- diff kitten: Keep the current (topmost) filename visible when scrolling, controlled by a new option :opt:`kitten-diff.sticky_header` (:pull:`9891`) 0.46.2 [2026-03-21] diff --git a/kittens/diff/main.py b/kittens/diff/main.py index a9dac8993..f95c5890e 100644 --- a/kittens/diff/main.py +++ b/kittens/diff/main.py @@ -89,7 +89,7 @@ If an invalid expression is provided, diff will fail with an error. ''' ) -opt('sticky_header', 'no', option_type='to_bool', long_text=''' +opt('sticky_header', 'yes', option_type='to_bool', long_text=''' When scrolled past the header of a file, keep the file's name and separator pinned to the top of the screen. ''')