r/MacOSApps • • 26d ago

💻 Productivity Introducing Jumpr - an open sourced vimium for your whole mac

Hey there, I'm a big fan and longtime user of the vimium plugin for chrome. I love being able to jump around anywhere on the page and click on what I need with my keyboard, and wanted it for my whole mac, on any screen I have connected. If you're not familiar, you hit a keyboard shortcut, and all clickable elements across all your connected screens, receives a small label. Type that label and the app clicks on that element for you.

This free version is working well for me, and I'll be improving it over time. It already ships with Sparkle built in, so updates going forward will be free also. I plan to add more features like scrolling next, but currently focused on making sure labels get applied reliably on all the various types of apps that expose clickable things via the accessibility apis on macos. Fully local, no accounts, no telemetry, etc...

It's not perfect, issues and pr's are welcome and I hope you find it useful!

https://getjumpr.app
https://github.com/ggoforth/jumpr

4 Upvotes

22 comments sorted by

3

u/NoHabit1277 25d ago

oh very nice. so i can uninstall vimium and use it in chrome aswell?

2

u/hack_the_planets 25d ago

I would test it first to see how it works for you, it's working well for me in Dia, which is my daily driver.

1

u/[deleted] 20d ago

[removed] — view removed comment

1

u/hack_the_planets 11d ago

I'm using it daily for this. Most sites it works just fine for, some js heavy pages it still needs some work, please let me know or open an issue if you find pages it's not working well for!

2

u/mvs_sai_27 26d ago

I use neru, does jumpr offers same functionality? Both are open sourced so I need to test maybe

2

u/hack_the_planets 26d ago

I'll give it a look, I don't know, honestly (didn't find neru when I was looking at these!). I found Homerow which worked ok for me, but the pricetag was way too high, and only worked on the active window. This didn't take too long to put together, but I'm still finding and updating use cases for apps that lay things out without the accessibility apis.

1

u/hack_the_planets 26d ago

Just took a look, this looks really cool and mature. Jumpr is likely really basic in comparison, thanks for the call out to that tool!

2

u/VladimirDE 26d ago

Nice, a system-wide Vimium is something I've wanted for a while. How are you handling Electron and Chromium apps? As far as I know they only expose their full accessibility tree when something sets AXManualAccessibility or AXEnhancedUserInterface on them, and the latter can mess with window animations and window managers. Also curious how long labeling takes on a busy screen: do you walk the AX tree fresh on every hotkey press, or cache it?

2

u/hack_the_planets 26d ago

Electron/Chromium: Jumpr sets AXManualAccessibility first (Electron honours it, no side effects). Chrome refuses it, so on Chromium browsers Jumpr sets AXEnhancedUserInterface instead, but only when a scan finds a page with nothing clickable in it. It remembers which attribute it set on which app and clears them on Pause and Quit; one that was already set by something else is left alone.

Timing: fresh walk on every press, no cache. All apps in parallel, one AX request per element, 0.25 s timeout per request, 0.5 s budget per app, labels painted as each window answers. On my three-display Mac that's about 70-110 ms, up to ~270 ms on a heavy web page. Web views build their tree lazily, so there's a short look-again pass after the labels go up. Nothing runs between presses.

See TreeWalk.swift for the low level walk details.

1

u/VladimirDE 25d ago

That’s a careful approach, especially clearing only the attributes you set yourself. Under 300 ms with no cache is better than I expected. I’ll read TreeWalk.swift.

1

u/Jumpy-Weekend6102 26d ago

Can it reach all clickable elements? And does the layout show up quickly?

1

u/hack_the_planets 26d ago

It's really fast, and in my usage finds MOST clickable elements. I'm still smoothing out some edge cases for specific apps (for example, the quick tabs in dia aren't exposed via accessability and thus can not be labeled). I hadn't found Neru before I started building my poc, but it looks like it falls back to the grid (a good idea) vs trying to patch for specific apps.

2

u/y3owk1n 12d ago edited 12d ago

neru author here ~ hello. thanks for mentioning neru. chip in to provide a bit more context. neru provides different strategy for different use cases, the default are `axtree` which is exactly what homerow and jumpr uses. we also provide other strategies like `vision` which based off ocr and `contour | segment` which is based off pixel algorithm. We don't do app specific patching at the moment.

The main reason i am not monkey patching each app is because neru is cross platform, and accessibility works differently across all the platform. I have no incentives to manage bunch of data files that might be outdated anytime soon. hahaha

1

u/hack_the_planets 11d ago

The more I get into Jumpr the more important I think that is u/y3owk1n. I'm finding lots of use cases where labels don't get applied, and I'm resisting the urge to patch for those cases and patch more for the behavior. At any rate, neru looks really cool, the grid approach is great, and did I also see you can select text with the keyboard? That's bonkers an I love the use case.

2

u/y3owk1n 11d ago

Hey yes, for neru, accessibility tree is just one of the source or way to navigate. Under the hood, we never perform actions via accessibility actions at all, every actions are posted to the mouse, eg scroll, click and stuffs. This is to ensure we are fully decoupled from accessibility features and can be used everywhere.

Hence that’s also how we can select text. The concept is simple, whatever your mouse can do, neru can do it. Accessibility tree is just one of the source to let you navigate to the point you wanted.

In the case of monkey patching, our solution is to provide a global and app specific configuration to add or remove specific ax role or sub role when the app is focused, so user has all of the ability to decide which can be a label and which should never be, in per app context.

Also for neru, there’s actually a lot of different modes, the latest mode that I recently built is an actual vim mode. We ocr the screen, pass the whole parsed screen content into a vim like buffer and user can navigate through, copy text, edit text or even clicking just like in vim.

Hope our work inspires you to make Jumpr better and better. 💪

1

u/hack_the_planets 11d ago

Very cool, and thank you for the shop talk! Neru looks awesome!

1

u/NeedleworkerDuck 26d ago

Starred. Homerow is great but I like having a free, local, open source option, especially since Vimac is basically abandoned. Scrolling mode would make this a daily driver for me, so looking forward to that one.

0

u/hack_the_planets 26d ago

Spiking that as I type this! Scrolling will def be possible, and running tests right now. Also, just shipped v1.0.6 which updates the menu bar app to make it nicer.

1

u/thepurpleproject 22d ago

Pretty cool, I liked the small demo on the landing page. I couldn't enter my hyper key short cut as the trigger for some reason, it just won't detect (ctrl+cmd+alt+shift) but other than that I like it.

1

u/hack_the_planets 22d ago

I actually noticed that too, checking if that's somehow reserved.

1

u/[deleted] 26d ago

[removed] — view removed comment

1

u/hack_the_planets 25d ago

Very good idea.