tofi icon indicating copy to clipboard operation
tofi copied to clipboard

Add possibility to act on selection

Open bbusse opened this issue 1 year ago • 1 comments

This would e.g. allow browsing documents with something like xdg-open and other neat features.

It could be invoked with an argument like --selection-exec="xdg-open" which could be triggered with return on the selection while tofi stays open until the user exits with ESC

bbusse avatar Apr 06 '23 06:04 bbusse

I'd rather have something like this in a different form. Currently, tofi doesn't execute anything (unless you use --drun-launch, but ideally that shouldn't be used), and I'd prefer to keep it that way.

I think what you're suggesting would be be better served with a way to allow multiple selections (such as #78), and a simple wrapper script that xdg-opens each result. On that note, I've been thinking of making a 'tofi-contrib' repo or something, where themes and scripts like that can go - I might have a look at that soon.

philj56 avatar Apr 07 '23 10:04 philj56