Adding drag-drop from terminal in macOS
Easy way to drag and drop from terminal to anywhere else in Mac OS
Steps to install:
Usage:
Bonus
Last updated
Easy way to drag and drop from terminal to anywhere else in Mac OS
Use this cool tool:
git clone the above repo
cd dragterm
brew install cocoapods
g++ DTDraggingSourceView.m main.m -framework Cocoa -o drag
Add the folder to PATH
export PATH="<your drag term folder path>:$PATH"
drag <filename>
If you are using ranger or some other CLI based file manager, you can easily add support to dragging from terminal using dragterm with a key-map as follows:
Paste the above to .config/ranger/rc.conf to map ctrl+d to drag a file from ranger
Last updated
map <C-d> shell drag %p