tofi icon indicating copy to clipboard operation
tofi copied to clipboard

[Feature Request] Allow tofi-run and tofi-drun to read from stdin

Open juuyokka opened this issue 1 year ago • 1 comments

Pretty much what it says on the tin! This would allow a user to pass in additional menu options to tofi-run/tofi-drun. One use case is enabling the use of aliases.

juuyokka avatar Sep 06 '23 07:09 juuyokka

Hey, sorry for the delay.

I don't think this needs to go in tofi itself, as it's probably better off as just a shell script around tofi - see my earlier reply about aliases. To aid this, I'd probably also add a tofi-compgen alias, to just do the $PATH-listing part of tofi, so you could add to it and feed it back in to tofi.

Also, for tofi-drun, it's not so easy as that's pretty specialised, and I'm not sure why you'd want to be running desktop files alongside aliases and the like.

That said, I'm not 100% against the idea, if there's some use case that a simple shell script can't solve.

philj56 avatar Nov 28 '23 20:11 philj56