phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

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

Open fabiospampinato opened this issue 2 years ago • 2 comments

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.

fabiospampinato avatar Feb 03 '23 02:02 fabiospampinato

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.

kasper avatar Feb 03 '23 15:02 kasper

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

rcarmo avatar Apr 24 '23 19:04 rcarmo