Pick bufnr
function, to allow selecting which split to open a selected file in
#1036
Open
3 of 6 tasks
vim --version
ornvim --version
::echo has("python")
:0
:echo has("python3")
:1
:py print(sys.version)
::py3 print(sys.version)
:Describe your question, feature request, or bug.
LeaderF will always open the specified file in the least recently focused buffer (the buffer that you previously edited before triggering leaderf).
I would like to be able to select which buffer the file is opened in, similar to what I can achieve with
![Screenshot 2023-09-15 at 11 58 33](https://private-user-images.githubusercontent.com/396475/268247296-7e1b3c74-f957-441e-9059-2fd8eedd982b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzg3OTEsIm5iZiI6MTczOTQzODQ5MSwicGF0aCI6Ii8zOTY0NzUvMjY4MjQ3Mjk2LTdlMWIzYzc0LWY5NTctNDQxZS05MDU5LTJmZDhlZWRkOTgyYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwOTIxMzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04M2RiMTM3OWY3MDg2ZDA4ZWUzNDEyNmUwNGUyZjJmNGY2MWI4NmNlMTcxZWFjZWI1YmIxZDgxZjdkMTg0Zjk3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.GKYJth-XNEV8tovyPf7A_erQ9bfDhiqOl4Fhyrkbfn0)
nvim-tree
andwindow-picker
:The green bars below each split is telling me which key to press to open the file in this split.
As far as I understand,
LeaderF
would need to provide a "callback" that's called before opening the file. Thepick()
function fromwindow-picker
will return a bufnr in which the new file is opened.The text was updated successfully, but these errors were encountered: