1 hour ago · Tech · hide · 0 comments

In the latest installment of why we can’t have nice things, I noticed that my markdown viewer of choice, md-tui didn’t support mouse scroll wheel handling… or did it? Running md-tui inside of Tmux, inside the terminal, no work. Running md-tui outside of Tmux, do work. Neovim inside of Tmux, do work. Scrolling the buffer history, inside of Tmux, do work. Hmmmmmmmmmmm. I guess one thing for it and send a bot down the rabbit hole, enable mouse events in md-tui, and come up with a tidy and reasonable PR (IMO, natch), to then receive a reasonable PR comment: When I tried it in Wezterm, it was stuttered a lot, and scrolling worked without this PR. Which terminal emulator where you using which this PR fixed it? Good question! At this point I ackshually checked when it failed for me, pinpointing it to the set -g mouse on command in my Tmux configuration and let a bot look into it, and after some false starts etc. we ended with: set -g mouse on bind-key -n WheelUpPane { if -F…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.