在 yazi 裡面拖曳(Mac)
用 dragterm。
git clone https://github.com/Wevah/dragterm.git
cd dragterm
g++ DTDraggingSourceView.m main.m -framework Cocoa -o dragterm
mv dragterm /usr/local/bin/
接著在 keymap.toml 設定:
{ on = "e", run = "shell 'dragterm \"$@\"' --block=false", desc = "Drag file" },
打開 yazi,在檔案裡面按 e,檔案就會自動出現在滑鼠上,可以拖曳到瀏覽器上了。