|
I have a custom buffer action that allows deleting the current buffer (as shown in #1222). I have this logic, that allows deleting the first buffer, and sets our position to the second element: buffers = {
fzf_opts = {
["--header-lines"] = false,
},
keymap = {
fzf = {
load = "pos(2)",
},
},
}This is great for when you open the picker, since it's unlikely you want to swap to the current buffer. However, the |
Replies: 2 comments 1 reply
|
didn’t test so if this doesn’t work search load = "pos(2)+unbind(load)" |
|
9 months late, but this seems to unbind the load action entirely, so does nothing afterwards. However, I committed some war crimes and got this to work: keymap = {
fzf = {
-- Buffer picker shouldn't start on the current buffer
load = 'transform:[[ "$FZF_LIST_LABEL" = foo ]] || echo "change-list-label(foo)+pos(2)"',
},
}:33 |
9 months late, but this seems to unbind the load action entirely, so does nothing afterwards. However, I committed some war crimes and got this to work:
:33