-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Command Line Argument to Toggle Flow Launcher (in same way as Alt-Space) #2586
Comments
interesting! Do you want to file a pr? I can show you where might be the starting point! I don't think we have a good command line argument so maybe that can also be added. |
In theory/principle I would love to contribute a PR -- whether I can realistically follow through on that right now time-wise is another story. 😆 But yes, I would be happy to be directed to a starting point in the code and at least my brain can be percolating on it (and any other interested parties will then also have the same starting point to work with as well, in the event someone else is able to get to it before me). :) |
The startup code starts at this line Flow.Launcher/Flow.Launcher/App.xaml.cs Line 49 in dfd1b8c
and the code handling opening an existing process is here
Flow.Launcher/Flow.Launcher/App.xaml.cs Line 189 in dfd1b8c
Flow.Launcher/Flow.Launcher/Helper/SingleInstance.cs Lines 322 to 339 in dfd1b8c
|
Looking through that helpful list I would add the following two:
It seems to me that Actually, it occurs to me that the current behavior is that when So I think it might be as simple as replacing Flow.Launcher/Flow.Launcher/App.xaml.cs Line 191 in dfd1b8c
I sadly do not have an environment setup to build and test this, but let me know what you think -- this might be a very simple addition! :) |
If you want to change the current behavior we may need extra discussion, in which I personally are not sure about it @Flow-Launcher/team. If you want to extend some command line argument then you can manipulate the message sent through the pipe and parse it accordingly to determine which action should be acted. |
Hey there, I noticed that Flow can handle launching a new process while an existing process is running. This means you can initiate a new process to trigger Flow if it's already running, using |
Hmm, I am reticent to take up mental energy from the Flow Launcher team on something like this that is rather low priority (ie, potentially nice to have, but not necessary). I've also been doing some more thinking and experimenting (in part in response to a side conversation with @AminSallah ), and while I still think it could be a nifty little change (with potentially no downsides), it is probably not going to be as effective for my purposes (and definitely not needed for the Win key plugin) as I was originally thinking. At the moment I could be fine with letting this sit for a bit and/or perhaps closing it for now.
Yes, thanks @AminSallah ! That is what I was playing with conceptually, is how to change that from just launching to also being able to toggle. :) |
Thanks for the suggestion @EnigmaSolved, sounds like you got the answer/feedback from @AminSallah already, I will close this issue. Feel free to reopen at any point if you want to further the discussion. |
It might be nifty if there could be a command line argument that would toggle the display of Flow Launcher, in the same way that the hotkey (ie,
Alt-Space
) toggles Flow. Currently, callingFlow.Launcher.exe
correctly displays Flow Launcher (as opposed to launching a new instance), but there is no way (that I know of!) via the .exe to then hide Flow Launcher again in the way that executing the hotkeyAlt-Space
will hide Flow Launcher.Granted, in most cases using the hotkey combo is going to be easiest and best, but there are some circumstances in which there can be a desire to toggle Flow from something other than a hotkey. One example is the recent exploration of using the
Win
key to toggle Flow, which, last I checked, is internally callingAlt-Space
in order to toggle Flow Launcher:I do not know for certain, but it seems possible to me that it would be cleaner, more direct, perhaps faster(?) if things like the above could directly toggle Flow instead of the user executing a hotkey (ie,
Win
) which then programmatically executes the true hotkey (ie,Alt-Space
). Additionally, sometimes there can be funky issues with programmatic execution of hotkeys where you end up with stuck hotkeys (eg, the computer thingsShift
,Alt
, etc are still held down), and a more direct interface for programmatically toggling Flow would avoid this possibility.In my particular case, I am making use of HotFrameFx, which has support for some hotkey combos, but not all (currently). I have worked around that limitation by having HotFrameFx execute a simple AutoIt script which in turn executes the
Alt-Space
hotkey. But if there were (or is) a argument I could pass to the Flow .exe (eg,Flow.Launcher.exe -toggle
) so that it would always toggle the Flow state that would certainly be more efficient in my particular case.Just some things to consider! I know there are so many ideas to implement, so I do not expect this to be high need/priority. But thought it was worth putting out here. And if there is already an argument I can pass to the .exe to toggle Flow that would be awesome to know! :)
The text was updated successfully, but these errors were encountered: