Mouse scroll inside pagers #135

Closed
opened 1 year ago by JorwLNKwpH · 3 comments

Other terminal allow mouse scrolling inside pagers(less, vi, vim), but foot does not have this feature. For example, less file in kitty can be scrolled with the mouse, but this does not work in foot.

Other terminal allow mouse scrolling inside pagers(`less`, `vi`, `vim`), but `foot` does not have this feature. For example, `less file` in `kitty` can be scrolled with the mouse, but this does not work in `foot`.
dnkl commented 1 year ago
Owner

Hi,

foot does support this; in fact, you have two options:

  • enable native mouse support in the applications (e.g. less --mouse)
  • enable alternate scroll mode (echo -e '\e[?1007h').

See also #76.

Alternate scroll mode is currently disabled by default in foot. Perhaps it should be enabled by default. Or even better, add an option to foot.ini that sets the default.

Hi, foot does support this; in fact, you have two options: * enable native mouse support in the applications (e.g. `less --mouse`) * enable _alternate scroll mode_ (`echo -e '\e[?1007h'`). See also https://codeberg.org/dnkl/foot/issues/76. Alternate scroll mode is currently disabled by default in foot. Perhaps it should be enabled by default. Or even better, add an option to `foot.ini` that sets the default.
Poster

Interesting, I did not know this feature was called alternative scroll. I think most other terminal emulators have this on by default.

Interesting, I did not know this feature was called alternative scroll. I think most other terminal emulators have this on by default.
dnkl commented 1 year ago
Owner

Feel free to test #137 if you like.

It adds a configuration option that controls the initial state of the Alternate Scroll Mode, and defaults to enabled. I.e. scrolling in less should work out-of-the-box.

Feel free to test https://codeberg.org/dnkl/foot/pulls/137 if you like. It adds a configuration option that controls the initial state of the Alternate Scroll Mode, and defaults to enabled. I.e. scrolling in `less` should work out-of-the-box.
dnkl closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.