hstr
hstr copied to clipboard
Support copying a command from history to clipboard
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!