Skip to content
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

Mouse scroll support and select multiple commands for further manipulation. #200

Open
hongyi-zhao opened this issue Apr 6, 2024 · 1 comment

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Apr 6, 2024

  1. Can we let hishtory support mouse scroll?
  2. Can we let hishtory support select multiple commands for further manipulation, say, sort them according to the execution order, run-time, etc., and then copy the corresponding command column onto the system's clipboard?

image

ddworken added a commit that referenced this issue Apr 13, 2024
ddworken added a commit that referenced this issue Apr 14, 2024
@ddworken
Copy link
Owner

Thanks for filing this! I've spent a bit of time on this, and interestingly, even just supporting scrolling via the mouse is actually a bit difficult to support. Adding it was trivial (see 7d9bb66), but it turns out that this breaks the ability to highlight text in order to copy/paste it. Personally, I find myself copy/pasting text from the TUI decently often (e.g. if I want to copy/paste just a directory name) so I'd rather not break this. I'm still looking into the feasibility of this, but it is tricky since the underlying library we're using for terminal interactions doesn't support capturing the scroll wheel without capturing all other mouse events. I still plan on spending some more time looking into this, but this might have to be supported behind an opt-in config option.

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

No branches or pull requests

2 participants