kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

Support for rendering both the placeholder and manual input, in input modals #325

Open fabiospampinato opened 1 year ago

fabiospampinato commented 1 year ago

It'd be awesome if one could render both the placeholder and the user string at the same time, one of top of the other, with perfect alignment, but different colors.

My use case: I'd like to build myself a super minimal Spotlight-like search bar for opening applications, since for whatever reason Spotlight is broken for me in that regard, and if I were able to render both texts at the same time in an input modal then I could definitely use that to build my spotlight. Basically the idea is to use the placeholder text as a sort of autocomplete, after the user has typed something.

kasper commented 1 year ago

I’ve been thinking of having two rows in the input modal. One for the input and a smaller one below for providing a way to show results.

rcarmo commented 1 year ago

I've been wanting to implement "switch to window by name" for a while in my Phoenix scripts... This would be perfect.