rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

Be able to click without leaving grid mode. #248

Open alanxoc3 opened 1 year ago

alanxoc3 commented 1 year ago

I don't see much of a reason for normal mode, because you can move around in gridmode just as easily (grid_left/right/up/down). So I'd like to be able to stay in grid mode when I click/drag/scroll.

When I click, I get sent back to normal mode. Is it possible to not get sent out of grid mode when clicking? If not, is this something that could be supported?

rvaiya commented 1 year ago

Grid mode exists as an alternative to hint mode for macroscopic movements, with the idea being that once the user has selected a target, they are free to choose another mode for the next macroscopic movement using one of the modal triggers. Once the grid has been narrowed to a target it is mostly useless, and the user will probably want to reactivate it. Having said that, the recommended way to use warpd is to use hint mode for macroscopic movements and normal mode for more refined ones.

alanxoc3 commented 1 year ago

Yeah, I understand that workflow and this is a very minor request. I also agree that grid mode is usually not very useful after you've narrowed down to a specific place, but here is the specific use case for me...

I want to do this: I start warpd in grid mode, then I scroll through a webpage (which is full screen & my cursor is in the center of the screen), then I narrow the grid down to a specific place.

But I'm forced to do this: I start warpd in grid mode, then I scroll through a webpage (which takes me out of grid mode), then I enter grid mode again, then I narrow the grid down to a specific place.

rvaiya commented 1 year ago

If I understand you correctly, this only saves a single keystroke. Grid mode can be entered from normal mode by pressing g, so you can just activate warpd in normal mode, scroll (e/r) and press g to initiate a grid movement. Scrolling while in grid mode also has the disadvantage of obscuring the screen.

alanxoc3 commented 1 year ago

You understand correctly, it only saves 1 keystroke for me and is totally not a big deal.

Just playing with the idea, exposing mouse keys to modes outside of normal mode might make these scenarios possible too:

sathishmanohar commented 12 months ago

I use warpd in mostly hint mode. I've wanted something similar as well. My use case is I want to quickly close the a few tray icons. So multiple times I have to do

For this I currently have to leave and exit warpd multiple times but I am able to do the clicking in the normal mode. I'd be able to click and do whatever I want and then invoke the hint again with x.