You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yazi has the feature to use Dragon drop file from Yazi.
I have the following to drop files into Yazi.
[[mgr.prepend_keymap]]
on = "<S-A-d>"
run = '''
shell "
dragon-drop -x -T -a -v --target | python3 -c 'import sys, urllib.parse; [print(urllib.parse.unquote(line[7:].rstrip())+\"\\0\" ,end=\"\") for line in sys.stdin if line.startswith(\"file://\")]' | xargs -0 -I {} cp -r '{}' . "
'''
Warning: This one will fail if there is already something with the same name. You can do cp -f, but that is not good.
Can Yazi's yank take stdout from the shell? This way it works more like a paste in Yazi.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Yazi has the feature to use Dragon drop file from Yazi.
I have the following to drop files into Yazi.
Warning: This one will fail if there is already something with the same name. You can do
cp -f, but that is not good.Can Yazi's yank take stdout from the shell? This way it works more like a paste in Yazi.
Beta Was this translation helpful? Give feedback.
All reactions