cboxdoerfer / fsearch

A fast file search utility for Unix-like systems based on GTK3
GNU General Public License v2.0
3.35k stars 209 forks source link

Hotkey should bring focus to fsearch #535

Open new-penguin opened 10 months ago

new-penguin commented 10 months ago

It's a habit by now to press my hotkey and bring up fsearch but in the case when it's already open, it doesn't focus. Not a big deal but it makes me have to reach for my mouse and I don't like having to reach for the mouse :).

I'm on EndeavorOS w/ KDE and Wayland compositor so maybe the feature is already implemented and perhaps it's an issue upstream?

The-Maize commented 9 months ago

this can be done, i use super + f as my main hotkey. On kde i did this in the system settings under hotkeys add application and assign shortcut. on gnome its the same thing.

new-penguin commented 9 months ago

I changed it to super + f but still the same. It doesn't focus when already open.

The-Maize commented 9 months ago

Thats strange, it does on my end, im not sure why that would not work for you. thats the only thing i had to do to get that to launch a window and be able to type without having to click in to (activated focus on launch).

VeH-c commented 7 months ago

On Linux Mint Cinnamon 21 opening fsearch via the system menu listing or a hotkey (programmed via cinnamon-settings keyboard) it is focused. Although, if it's opened in another work-space, the shortcut does nothing, but via the system menu it will 'pop' you to it in that work-space, odd but probably intentional design. So it's probably not something that fsearch is responsibly for, but more of a distro specific thing.

new-penguin commented 7 months ago

I'm on KDE with Wayland. It seems to have issue bringing a couple apps like fsearch and Haruna to focus when in the background. When open but in the background, I just get an fsearch busy icon and it doesn't come to focus. Might be a Wayland issue or KDE, not sure.

blueray453 commented 6 months ago

I bound fsearch to Super+F and it works perfectly well for me (Using Debian 12).

MagnusMagnuson commented 3 weeks ago

Still seems to be an issue. I'm also on KDE with Wayland and have the same problem. Shortcut opens it, but if it's already opened it does not focus it. Is this a KDE/Wayland issue?

I'm new to linux, but my work around (which might be specific to my setup) is to right click the title bar, go to more actions > configure special windows settings > adding a shortcut with "remember". Won't open it, but it will focus it once it's running.

new-penguin commented 3 weeks ago

adding a shortcut with "remember"

You lost me on the last part. Could you elaborate? But yes, I do believe it's a Wayland issue. It happens with Haruna also.

MagnusMagnuson commented 3 weeks ago

You lost me on the last part. Could you elaborate?

Screenshot_20241028_113208

This is what it looks like for me. I added the shortcut via "Add Property" and then selected "Remember" in that dropdown. "Apply initially" and "Force" seem to work as well to permanently keep the shortcut.