AutoRaise icon indicating copy to clipboard operation
AutoRaise copied to clipboard

warp not working when focusing on different windows from the same app

Open Hazza88 opened this issue 11 months ago • 5 comments

https://github.com/user-attachments/assets/f78d88a7-8f24-4a62-832b-83c3f7760f22

Hazza88 avatar Feb 15 '25 12:02 Hazza88

@sbmpost How are you changing the window focus? Maybe I should've made it clearer initially, but I'm experiencing this issue while using a non-standard method through ALTERNATIVE_TASK_SWITCHER. Using cmd+`, etc., works fine.

Hazza88 avatar Jul 13 '25 20:07 Hazza88

@Hazza88

Ah that would explain why I can't reproduce. To implement warp, AutoRaise specifically intercepts the cmd+backtick combination. Any other means of switching between windows of the same app isn't implemented. Out of curiosity: what method are you using to switch between windows of the same app? Are you using other tools for that?

sbmpost avatar Jul 14 '25 06:07 sbmpost

I use yabai with skhd for window management, so I'm using their method for focusing windows. For example, this command focuses the next tiled, visible window in a clockwise fashion when I press left alt + tab: lalt - tab : yabai -m window --focus next || yabai -m window --focus first. This is the same command as I used in the attached video.

I don't know if this is possible, but could something similar be done to ignored apps? Essentially, from the user's perspective, you'd pass in a string of key combinations which would be intercepted alongside cmd+,.

Hazza88 avatar Jul 14 '25 17:07 Hazza88

@Hazza88

Thanks for sharing :-). I think the used key combination in theory can be made configurable but this would add a considerable amount of code to AutoRaise to make possible. Maybe if restricted to just a single modifier key and a "regular" key, it is do-able.

Another option might be to use a shortcut key library which could also configure how AutoRaise is toggled on/off. This introduces a dependency however.

For the moment you can experiment a bit yourself if you like: Have a look at how cmd-backtick has been implemented in the code, and replace it. For example:

- cmd -> alt
- backtick (grave) -> left or right arrow.

Then recompile according to the instructions of the README.

sbmpost avatar Jul 15 '25 05:07 sbmpost

Thats fair enough about the used key combination, but thank you for pointing out the other options. I had a look at the code where cmd-backtick is implemented and modified it to my needs, so it seems its now working as expected.

Hazza88 avatar Jul 21 '25 08:07 Hazza88