diff options
author | Gabriel <gabriel.sevecek@gmail.com> | 2020-03-22 21:45:20 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2021-01-16 14:25:07 +0100 |
commit | 7916671de56bec7b1897ab6bbdf4b5d1bc441210 (patch) | |
tree | 89ee5b81a021778d470f909aa63974a3ccdb973b | |
parent | ef104ea956776a97d1a5ff07281606eb0ab9e7fe (diff) | |
download | vis-fzf-open-7916671de56bec7b1897ab6bbdf4b5d1bc441210.tar.gz |
Add <Enter> to open file immediately after selection
-rw-r--r-- | fzf-open.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fzf-open.lua b/fzf-open.lua index 468625e..36c4739 100644 --- a/fzf-open.lua +++ b/fzf-open.lua @@ -26,7 +26,7 @@ vis:command_register("fzf", function(argv, force, win, selection, range) if status == 0 then -- vis:command(string.format("e '%s'", output)) - vis:feedkeys(string.format(":e '%s'", output)) + vis:feedkeys(string.format(":e '%s'<Enter>", 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 |