From ea7a82c0c6ea4f924c4f4188f23ed91e89c09a5e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Mar 2026 22:49:54 +0530 Subject: [PATCH] Cleanup previous PR --- docs/changelog.rst | 4 ++-- kitty/options/definition.py | 20 ++++++++------------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index cff54ec87..e91772087 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -170,8 +170,6 @@ Detailed list of changes - A new option :opt:`palette_generate` to automatically generate the 256 color palette from the first 16 colors (:pull:`9426`) -- Add a :opt:`progress_bar` option to draw a visual progress bar when a program reports progress using the OSC 9;4 escape sequence. The bar can be positioned on any edge of the window (left, right, top, bottom) and reuses the scrollbar's track and handle colors and opacity settings. In the indeterminate state, a handle animates back and forth (:iss:`9777`) - - For builtin key mappings automatically :ref:`fallback ` to matching the US-PC layout key when the pressed key has no matches and is a non-English character (:pull:`9671`) - Allow drag and drop of windows to re-arrange them, move them to another @@ -181,6 +179,8 @@ Detailed list of changes - Have :ac:`scroll_line_up` and :ac:`scroll_line_down` smooth scroll by default. Can be restored to old behavior by re-mapping without the ``smooth`` argument (:iss:`9689`) +- Draw a progress bar at the top of the window when a program reports progress using the OSC 9;4 escape sequence, controlled by :opt:`progress_bar` (:iss:`9777`) + - :doc:`Remote control `: Expose :code:`session_name` in the output of ``kitten @ ls`` for each window (:iss:`9732`) - Fix thickness of diagonal lines in box drawing characters not the same as horizontal/vertical lines (:iss:`9719`) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index ee33c9d1f..d5c3abf6a 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -519,25 +519,21 @@ use the current selection background color. Also, you can use an arbitrary color, such as :code:`#12af59` or :code:`red`. ''') -opt('progress_bar', 'top', ctype='progress_bar', choices=( - 'left', 'right', 'top', 'bottom', 'hidden'), long_text='''\ +opt('progress_bar', 'top', ctype='progress_bar', choices=('left', 'right', 'top', 'bottom', 'hidden'), long_text='''\ When a program uses the OSC 9;4 escape sequence to report progress, draw a progress bar -in the specified position of the window. The bar uses the same track and handle colors and opacity settings -as the scrollbar (:opt:`scrollbar_track_color`, :opt:`scrollbar_handle_color`, -:opt:`scrollbar_track_hover_opacity`, :opt:`scrollbar_handle_opacity`, -:opt:`scrollbar_width`, :opt:`scrollbar_gap`, :opt:`scrollbar_radius`). -When the progress bar and scrollbar overlap, the progress bar is drawn underneath the scrollbar. +in the specified position of the window. The bar uses the same style and color settings +as the scrollbar . :code:`left` - means a vertical progress bar on the left edge. + a vertical progress bar on the left edge :code:`right` - means a vertical progress bar on the right edge. + a vertical progress bar on the right edge :code:`top` - means a horizontal progress bar on the top edge. + a horizontal progress bar on the top edge :code:`bottom` - means a horizontal progress bar on the bottom edge. + a horizontal progress bar on the bottom edge :code:`hidden` - means disable the progress bar. + dont show the progress bar ''') opt('scrollback_pager', 'less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER',