Skip to content

file_switch_or_edit and buf_switch_or_edit only switches within the current window/tab? #1997

Answered by nenahp
dominickng asked this question in Q&A
Discussion options

You must be logged in to vote

I test a bit, I think it work well:

          ['enter'] = function(sel, o)
            local entry = require('fzf-lua.path').entry_to_file(sel[1], o, o._uri)
            local fullpath = entry.bufname or entry.uri and entry.uri:match("^%a+://(.*)") or entry.path
            vim.cmd(([[drop %s]]):format(fullpath))
          end,

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ibhagwan
Comment options

@dominickng
Comment options

@ibhagwan
Comment options

@ibhagwan
Comment options

@dominickng
Comment options

Answer selected by dominickng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants