|Subject:||[Ranger-users] Suggestion for added command|
|Date:||Fri, 12 Sep 2014 12:56:51 -0400|
Enjoying “ranger” very much.
Integrates well with my MacOS/Homebrew/Vim/zsh/tmux stack.
I added a command to my .config/ranger/commands.py file:
from subprocess import call
Copy the contents of file to Mac clipboard using /usr/bin/pbcopy
theFile = self.fm.thisfile.path
theCommand = "cat " + theFile + " | /usr/bin/pbcopy"
I know that this only works on MacOS, I guess that someone could just add a version for “xclip”.
Thanks again for a great program.
|[Prev in Thread]||Current Thread||[Next in Thread]|