aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins/drag-file6
-rwxr-xr-xplugins/drop-file6
2 files changed, 10 insertions, 2 deletions
diff --git a/plugins/drag-file b/plugins/drag-file
index c44acf9..4bf57ba 100755
--- a/plugins/drag-file
+++ b/plugins/drag-file
@@ -12,7 +12,11 @@ all=
dnd()
{
- dragon "$@"
+ if which dragon-drag-and-drop; then
+ dragon-drag-and-drop "$@"
+ else
+ dragon "$@"
+ fi
}
function use_all()
diff --git a/plugins/drop-file b/plugins/drop-file
index d824c30..f43cde1 100755
--- a/plugins/drop-file
+++ b/plugins/drop-file
@@ -16,7 +16,11 @@ selection=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
dnd()
{
- dragon "$@"
+ if which dragon-drag-and-drop; then
+ dragon-drag-and-drop "$@"
+ else
+ dragon "$@"
+ fi
}
function add_file() {