Closed jemag closed 7 months ago
Nice idea, i will do when i have some free time
added here:
https://github.com/otavioschwanck/arrow.nvim/commit/04d1863559770682254cf65108b9f1a7f4240e79
Just add to setup:
custom_actions = {
open = function(target_file_name, current_file_name)
-- change here to actual code
print("filename: ", target_file_name)
print("previous: ", current_file_name)
end,
},
Arrow is based on filenames only (not bufnr), so you will need to get the bufnr from the target_file_name / current_file_name
Thanks for the issue!
It would be nice if we could have custom actions for the buffers in the buffer list. Maybe just a function that passes in the buffer number?
For example, I would love to be able to use https://github.com/s1n7ax/nvim-window-picker when splitting or opening a buffer, which I can do in both neo-tree and telescope. Example of what it looks like:
and code I use to make it work with telescope: