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

Insert active explorer path

Open Garulf opened this issue 3 years ago • 9 comments

When Flow Launcher is invoked with an active Explorer.exe window selected Flow Launcher will open with that folder path selected.

https://user-images.githubusercontent.com/535299/146168862-f5bba285-f310-4acb-9e5c-a1760b2ddb36.mp4

Garulf avatar Dec 15 '21 10:12 Garulf

tested working on win 10.

this is awesome, thank you @Garulf

let's consider how to implement this user experience wise

  • include in explorer plugin?
  • hotkey to activate?
  • option to activate automatically?

i noticed one of the dll is already used by flow- Shell32

jjw24 avatar Dec 15 '21 20:12 jjw24

@Flow-Launcher/team what do you guys think?

jjw24 avatar Dec 15 '21 20:12 jjw24

@Flow-Launcher/team what do you guys think?

wowwww awesome

taooceros avatar Dec 16 '21 00:12 taooceros

tested working on win 10.

this is awesome, thank you @Garulf

let's consider how to implement this user experience wise

  • include in explorer plugin?
  • hotkey to activate?
  • option to activate automatically?

i noticed one of the dll is already used by flow- Shell32

Would definitely like a global hotkey option as well as an option for automatic.

Garulf avatar Dec 16 '21 12:12 Garulf

This looks sweet @Garulf! Thank you!!

Would you say this lays an adequate foundation for using the explorer plugin's doc: keyword to search file content within a given directory? Or would such a feature require a separate effort?

maholli avatar Jan 09 '22 01:01 maholli

Would you say this lays an adequate foundation for using the explorer plugin's doc: keyword to search file content within a given directory? Or would such a feature require a separate effort?

I think it will be a separate effort.

taooceros avatar Jan 12 '22 21:01 taooceros

Maybe implement this under the explorer plugin? We can add a hook for plugins to do something they want when showing up the window.

taooceros avatar May 31 '22 11:05 taooceros

Maybe implement this under the explorer plugin? We can add a hook for plugins to do something they want when showing up the window.

Alternatively, an API could be exposed to try to get the file explorer window. If there is an open one, its path is returned. That way, plugins could mostly decide what to do with the information.

stefnotch avatar Jul 15 '22 17:07 stefnotch

@taooceros @Garulf I refactored the code a bit, see https://github.com/Flow-Launcher/Flow.Launcher/pull/1275 Feel free to use the improvements, and let me know if that's better.

stefnotch avatar Jul 16 '22 09:07 stefnotch