hstr icon indicating copy to clipboard operation
hstr copied to clipboard

Support copying a command from history to clipboard

Open jarun opened this issue 4 years ago • 0 comments

I am trying to integrate hstr with nnn. We have a native prompt (no readline) where we store minimal history. It would be great if users can utilize hstr.

While playing with it I noticed hstr doesn't execute the selected command when it is not running from a tty. In that case would it be possible to add a program option to copy the selected command to the clipboard as well? Maybe using tools like pbcopy, xsel, xclip etc.? We have a script that uses some of those utilities, for different platforms.

Would it be possible to add this feature in hstr? Many thanks in advance!

jarun avatar Sep 05 '21 09:09 jarun