Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
7.66k stars 301 forks source link

Customize/Add Built-in Shortcuts (including keypresses, like {tab} and {enter}) #2561

Open EnigmaSolved opened 6 months ago

EnigmaSolved commented 6 months ago

It seems like there was perhaps once some consideration (https://github.com/Flow-Launcher/Flow.Launcher/pull/930) for additional enhancements to Built-in Shortcuts, and I would like to propose adding the ability to add various hotkey presses to the list, either by default, or just with the ability to customize it by the user. You could re-use the code that captures hotkey sequences for Custom Query Hotkeys, though there would need to be new code for simulating those hotkey sequences in Windows.

I imagine there are all sorts of interesting things that could be done with this addition, but a simple immediate example is that adding the {enter} key to the Built-in Shortcuts (or enabling the user to add it) would then provide a solution to https://github.com/Flow-Launcher/Flow.Launcher/issues/2213 for Custom Query Hotkeys being able to automatically trigger when called.

Thanks for considering this idea/request! :)

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

VictoriousRaptor commented 4 months ago

Could you descride your idea with more details? Do you mean by adding {enter} automatically presses enter?

EnigmaSolved commented 4 months ago

Could you descride your idea with more details? Do you mean by adding {enter} automatically presses enter?

Yup, exactly, and same thing for {tab}. And I guess, actually, on a technical level it wouldn't truly be that it has to simulate a true "enter" or "tab" key as much as that the appropriate internal Flow functions that would normally be called by those key presses in those moments/contexts will get called. The goal is to make possible more complex Custom Query Hotkeys (eg, ones that will automatically "trigger" when called, as well as ones that could "tab" one or more times if needed to get the desired end state). I personally don't have a specific end-use case for {tab} (or I've forgotten it, LOL), but I think I have some intended goals for {enter} and it seemed like adding {tab} at the same time could make sense / be more efficient than adding it later when it'll inevitably get requested.

Let me know if more clarifying would be helpful! Thanks much for your inquiry, and work you're able to do on this! :)

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] commented 2 months ago

This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.