godbout / Scrolla.docs

Scroll with Vim motions under macOS
64 stars 0 forks source link

Seems to get the main window scroll only #20

Closed anguila closed 5 months ago

anguila commented 1 year ago

Hi, First, thanks for putting this app together!

I'm facing an issue that inVentura 13.2.1 it seems to be picking up only the main window. I tried with tab, up/down and CTRL n, but nothing. It seems just to be able to control the scroll of the main window.

image

Best,

David

godbout commented 1 year ago

that's gonna be the case for browsers yes, and probably Electron apps. Scrolla detects Scrollbars and Scroll Areas. those are properly defined in native apps. for Electron apps and browsers, it's just custom UI rendering shits. "looks" ok, but in terms of structure and accessibility it's shit. lazy stuff. so in those cases Scrolla can only grab the main window, as you're seeing.

for native apps there's an option in Scrolla's Settings (the second one):

Screenshot 2023-06-06 at 13 07 30

in some apps like Arc that will help grab the web content, but it's still pretty poor.

anguila commented 1 year ago

Ok, thanks for letting me know. That's a shame because vscode is also an electron app and I'd have loved to use this there... 😢

godbout commented 1 year ago

i'll have a look if there's something to do, but i don't think so. i'll keep you updated.

there's some stuff i'm investigating. like moving the cursor around through Vim moves once you've activated Scrolla. currently, Scrolla puts the cursor in the middle of the scrolling area, but actually Scrolla works on what's under the cursor. so in VSCode for example, if you activate Scrolla, then move the cursor let's say with the trackpad, you can still use jk etc. wherever you want. of course it's dumb coz you need to move the cursor manually currently. this is where moving the cursor through Vim moves idea comes. but haven't done a prototype yet.

godbout commented 1 year ago

Ok, thanks for letting me know. That's a shame because vscode is also an electron app and I'd have loved to use this there... 😢

ok, investigation done. so yeah, VSCode is just a bunch of "Group" UI Element. very lazy Accessibility, but that's Electron.

out of curiosity, where did you need Scrolla in VSCode? Terminal?

anguila commented 1 year ago

Thanks for checking, I appreciate the effort 💪 Code navigation with a vertical split window, so I can scroll up/down the code. Also, folder navigation on the left and terminal (I split them vertically having 2 of them too)

godbout commented 1 year ago

Code navigation with a vertical split window, so I can scroll up/down the code.

do you use Vim motions. you could use the same moves as Scrolla to go up/down the code. you could actually even use other moves that just don't move the scrollbars but actually move the cursor as well.

Also, folder navigation on the left and terminal (I split them vertically having 2 of them too)

yeah for that Scrolla would be better. sad. ☹️

godbout commented 5 months ago

can't do more on this so closing.

godbout commented 5 months ago

can also refer to this issue, as the current issue is targeted to Electron apps: https://github.com/godbout/Scrolla.docs/issues/16