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.
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:I'm not sure about the first
export
, but it doesn't work without it.First PR ever… Thanks.