cdown / clipmenu

Clipboard management using dmenu
MIT License
1.1k stars 90 forks source link

allow fzf to preview content of a clip #194

Closed fguada closed 1 year ago

fguada commented 1 year ago

A new function, clip(), is created if fzf is used to show clips. This function allows to preview the actual content of selected clip in fzf. It can be used by passing the function as an argument to the preview command used in fzf, for instance:

fzf --preview="cat \"$(clip {})\""

I'm not sure about the first export, but it doesn't work without it.

First PR ever… Thanks.