Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

BUG: Flow Launcher not invoking / opening Tab in QTTabBar in Windows 10

Open gauthambhat025 opened this issue 1 year ago • 11 comments

Checks

  • [X] I have checked that this issue has not already been reported.

  • [X] I am using the latest version of Flow Launcher.

Problem Description

I am using windows 10. I use QTTabbar to capture any new opening of windows explorer which very conveniently sets all my tabs in one single window. But when I invoke a folder from flow launcher, it opens in another window altogether. How to make it so that the invoked folder opens as a tab in the already opened window?

To Reproduce

  1. ...
  2. ...
  3. ...

Screenshots

No response

Flow Launcher Version

1.18.0

Windows Build Number

10.0.19045.3758

Error Log


Replace this line with the important log contents.

gauthambhat025 avatar Jun 18 '24 14:06 gauthambhat025

I think you can try to add a custom file manager for qttabbar? I don't know how exactly it needs to make it works. image

taooceros avatar Jun 19 '24 22:06 taooceros

I think you can try to add a custom file manager for qttabbar? I don't know how exactly it needs to make it works. image

QTTabbar is not a separate file explorer, so not possible to set as default file explorer. I have tried this with Wox launcher, it supports opening in same window as separate tab. But not able to get it working in flow launcher

gauthambhat025 avatar Jun 21 '24 08:06 gauthambhat025

I'm currently trying to figure out how to open folders in the current explorer window in a new tab. As I understand it, I need to use some window call cmd command, which qttabbar will intercept

JoyHak avatar Jun 22 '24 18:06 JoyHak

I'm currently trying to figure out how to open folders in the current explorer window in a new tab. As I understand it, I need to use some window call cmd command, which qttabbar will intercept

Thanks for the reply, any tentative ETA?. This bug is the only thing holding me back using flow launcher.

gauthambhat025 avatar Jun 24 '24 06:06 gauthambhat025

I've confirmed that it works in wox (if we open the path with process.start(path), we can open a tab). I didn't expect it to behave this way, so we're discussing a workaround.

onesounds avatar Jun 25 '24 05:06 onesounds

I've confirmed that it works in wox (if we open the path with process.start(path), we can open a tab). I didn't expect it to behave this way, so we're discussing a workaround.

If Flow Launcher opens a new tab in Files or another file manager, I'll just change file manager

JoyHak avatar Jun 25 '24 07:06 JoyHak

#Requires AutoHotkey v2.0
args := A_Args.Length == 1? A_Args[1] : A_Args[1] . " " . A_Args[2]

if (ErrorCode := ShellExecute(args)) <= 32
    MsgBox ErrorCode

ShellExecute(strArgs:="", nShowCmd:=1) {
    ; MsgBox strArgs
    ;http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx
    Return DllCall("shell32\ShellExecuteW"
    , "uint", 0
    , "uint", 0
    , "str", "explorer.exe"
    , "str", strArgs  ; arguments
    , "str", "" ; lpfile
    , "int", nShowCmd    ; specifies how an application is to be displayed when it is opened
    , "uint" )
}

An ahk script as a workaround. Set it as default file manager in flow (args are the same as explorer) and it can work.

VictoriousRaptor avatar Jun 25 '24 07:06 VictoriousRaptor

@gauthambhat025 @JoyHak

https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/50086900/artifacts The information that it works with WOX was helpful. After you get the portable version from the link above, select the qttabbar item and let us know if it works as you want.

If you don't have an entry for "QTTABBAR"(case insensitive), add one and select. Only the name entry needs to be correct.

onesounds avatar Jun 25 '24 07:06 onesounds

@gauthambhat025 @JoyHak

https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/50086900/artifacts The information that it works with WOX was helpful. After you get the portable version from the link above, select the qttabbar item and let us know if it works as you want.

If you don't have an entry for "QTTABBAR"(case insensitive), add one and select. Only the name entry needs to be correct.

I can confirm this works

gauthambhat025 avatar Jun 25 '24 08:06 gauthambhat025

I can confirm this works

Good. It will be in the next release, but it will take a while to get there.

onesounds avatar Jun 25 '24 08:06 onesounds

I can confirm this works, thank you ^^

JoyHak avatar Jun 25 '24 14:06 JoyHak