]> git.rmz.io Git - dotfiles.git/commitdiff
aliases: drop files into vim via abspath
authorSamir Benmendil <me@rmz.io>
Sun, 24 Jan 2021 23:22:05 +0000 (23:22 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 24 Jan 2021 23:22:05 +0000 (23:22 +0000)
aliases

diff --git a/aliases b/aliases
index 57dbfb8fe74e79afb909419b010f55bfec049819..f09cea4fd362215196152cf5cc46057d64e0caab 100644 (file)
--- a/aliases
+++ b/aliases
@@ -24,7 +24,8 @@ if [[ -n "${VIM_TERMINAL}" ]]; then
         for f in "$@"; do
             # drop the file onto the running vim instance
             # see :h terminal-communication
-            echo -e "\e]51;[\"drop\", \"$f\"]\a"
+            local abspath=$(realpath $f)
+            echo -e "\e]51;[\"drop\", \"$abspath\"]\a"
         done
     }
 fi