diff options
author | Guillaume Chérel <guillaume.cherel@iscpif.fr> | 2017-11-23 10:54:02 +0100 |
---|---|---|
committer | Guillaume Chérel <guillaume.cherel@iscpif.fr> | 2017-11-23 10:54:02 +0100 |
commit | ef104ea956776a97d1a5ff07281606eb0ab9e7fe (patch) | |
tree | 86268948b5d3b75f367d1df8ea5ee31ae74b1c43 | |
parent | 0de8dada61c02ca67f023b5cbd8848957b23d67f (diff) | |
download | vis-fzf-open-ef104ea956776a97d1a5ff07281606eb0ab9e7fe.tar.gz |
use vis:feedkeys rather than vis:command so that the command is written in the command window.
-rw-r--r-- | fzf-open.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fzf-open.lua b/fzf-open.lua index 7a20b0c..468625e 100644 --- a/fzf-open.lua +++ b/fzf-open.lua @@ -25,7 +25,8 @@ vis:command_register("fzf", function(argv, force, win, selection, range) local success, msg, status = file:close() if status == 0 then - vis:command(string.format("e '%s'", output)) + -- vis:command(string.format("e '%s'", output)) + vis:feedkeys(string.format(":e '%s'", output)) elseif status == 1 then vis:info(string.format("fzf-open: No match. Command %s exited with return value %i." , command, status)) elseif status == 2 then |