Skip to content

Conversation

@guidocella
Copy link
Contributor

@guidocella guidocella commented Oct 17, 2025

Bind Shift+LEFT, Shift+RIGHT, Shift+WHEEL_DOWN, Shift+WHEEL_UP, WHEEL_LEFT, WHEEL_RIGHT to scroll the menu horizontally.

This lets you see long items that get clipped, like long history entries and key bindings.

@github-actions
Copy link

@guidocella guidocella force-pushed the console-horizontal-scroll branch 2 times, most recently from 4291249 to 3f59ac9 Compare October 18, 2025 08:52
@verygoodlee
Copy link
Contributor

#15956 (comment)
characters outside the window are also visible after scrolling to the right, so the text must be cut based on utf8 characters, and ... needs to be added after cutting.
or simply not cutting the text at all, but the performance might be very poor when the text is large.

image

@guidocella
Copy link
Contributor Author

Fixed

@guidocella guidocella force-pushed the console-horizontal-scroll branch from 7aee40e to c5c9ccf Compare October 24, 2025 08:39
Bind Shift+LEFT, Shift+RIGHT, Shift+WHEEL_DOWN, Shift+WHEEL_UP,
WHEEL_LEFT, WHEEL_RIGHT to scroll the menu horizontally.

This lets you see long items that get clipped, like long history entries
and key bindings.
Since with the new horizontal scrolling the end of lines can be visible,
ensure not to clip lines in the middle of UTF-8 characters to not show
mojibake, also adding … to show when items are clipped.

Also replace the existing use of ⋯  with …
@guidocella guidocella force-pushed the console-horizontal-scroll branch from c5c9ccf to a96366a Compare October 24, 2025 12:55
{ "wheel_down", function() move_history(1, true) end },
{ "wheel_left", function() end },
{ "wheel_right", function() end },
{ "shift+left", function() horizontal_scroll(-25) end },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why with shift?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrows without shift move the cursor.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When do you move the cursor right/left ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whenever you want?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we never move focus from the text box? strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants