Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mouse to move the cursor?



2026-02-10 08:08:22 -0800, Ray Andrews:
> This might sound outright heretical and it probably is, still ... would it
> be possible to be able to use the mouse to position the cursor within a
> command line?  Since most everything is now mouse-capable, out of habit I
> often find myself clicking on a recalled zsh command line to position the
> cursor. Of course it doesn't work, but *could* it work?  I'd expect it to be
> viewed as a silly luxury even if it was doable, but I'll mention the idea
> anyway.  If that kind of thinking was acceptable one might even contemplate
> various other mousey things, like maybe the scroll wheel activating command
> recall or being able to dedicate left and right clicks to assigned widgets
> or commands ... could get interesting.

I wrote http://stchaz.free.fr/mouse.zsh for that decades ago as
a proof of concept. I never really used it as I generally don't
use a mouse. It was functional back then at least when using
single-byte single-width characters.

I beleive someone had pulled it into oh-my-zsh or another plugin
system and possibly improved it.

-- 
Stephane




Messages sorted by: Reverse Date, Date, Thread, Author