fman-users / fman

Issue tracker for fman, a cross-platform file manager
https://fman.io
240 stars 3 forks source link

Single instance mode #81

Open mherrmann opened 7 years ago

omisys commented 6 years ago

For those who are interrested, I'm currently using an AutoHotkey script to create a keybinding which will start Fman for me if it is not started yet, and if it is already running, activate the window(make it your active/focused window).

e::

SetTitleMatchMode RegEx WinActivate ahk_exe i)\fman.exe$ if (WinExist("ahk_exe fman.exe")) { WinActivate, ahk_exe fman.exe } else { Run, C:\Users\xxx\AppData\Local\fman\fman.exe WinWait, "ahk_exe fman.exe", , 3 WinActivate, ahk_exe fman.exe }

loligans commented 5 years ago

I like this idea. Here is my use case.

As a user, I have 2-4 virtual desktops. I open fman using keypirinha. perform my file operations, then minimize fman When I need to use fman again, I open fman using keypirinha. I expect my existing keypirinha instance on my current virtual desktop to be reused. If I am on another virtual desktop were fman is not open, fman should be opened on that virtual desktop.

The key here is that if fman is already open then it should reuse the existing instance. If a user needs a new fman window instance, they should do something like Ctrl+N or Ctrl+Shift+N

krupitskas commented 4 years ago

Sad that this was created in 2017 and yet not delivered.

mherrmann commented 4 years ago

@krupitskas if you'd like some context: https://youtu.be/I1K3IkOlaVw