cdown / clipmenu

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

Add ability to bypass clipmenu for choosing selection #161

Closed simonhughxyz closed 5 months ago

simonhughxyz commented 3 years ago

Add 2 new options: 1) --print-sel argument to print all selections in clipmenu 2) CM_INPUT_CLIP to accept selection from stdin

The reasoning behind this is to bypass clipmenu for getting a selection. For example: clipmenu --print-sel | fzf | CM_INPUT_CLIP=1 clipmenu

For my user case I found a need for it so I can preprocess the output of fzf before piping it back into clipmenu. This is because fzf prints out extra information, apart from the selection, in some circumstances and clipmenu can't handle with such a scenario.

cdown commented 5 months ago

clipmenu is now in C, so closing since this applies to the old bash version. Thanks for your work on this, though!