Skip to content

Support mouse instead of relying on less as a pager #3289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
craigemery opened this issue May 9, 2025 · 1 comment
Open

Support mouse instead of relying on less as a pager #3289

craigemery opened this issue May 9, 2025 · 1 comment
Labels
feature-request New feature or request pager-related

Comments

@craigemery
Copy link

The bigger deal here for me is that when we rely on telling bat to use less --raw-control-characters --mouse as a pager, it results in an imperfect experience if bat has coloured the output.

So if I bat --pager="less --raw-control-characters--mouse" test.log then bat colour syntax highlights the log file, great, but less hates the input.

Worse, I believe bat is good at letting the user search for text that bat knows is coloured and bat ignores the colour control characters, but when using less as a pager less does not ignore the control characters.

So I happen to think brining into bat mouse handing could well be the best solution.
Hopefully a FOSS package can be leveraged to facilitate this?

@craigemery craigemery added the feature-request New feature or request label May 9, 2025
@keith-hall
Copy link
Collaborator

see #1540 and #1053 for some prior discussions / initial proof of concept implementations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request pager-related
Projects
None yet
Development

No branches or pull requests

2 participants