Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mouse to move the cursor?
- X-seq: zsh-users 30444
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: mouse to move the cursor?
- Date: Tue, 10 Feb 2026 21:17:14 +0000
- Archived-at: <https://zsh.org/users/30444>
- In-reply-to: <2c87fad9-bfeb-497d-ab7b-977c4fe4b4fd@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- References: <2c87fad9-bfeb-497d-ab7b-977c4fe4b4fd@eastlink.ca>
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