buffer-tree-explorer icon indicating copy to clipboard operation
buffer-tree-explorer copied to clipboard

Expose API for extensions

Open poetaman opened this issue 4 years ago • 0 comments

I recently came across this plugin, and wonder if you can create/expose two functions for users?

function inputfilelist: Instead of loading buffer list, it will load the list of paths user provides. This way users can write their custom extensions using this your codebase, perhaps even other plugins.

function pathundercursor: When called, this will return the path under the cursor in the buffer tree explorer buffer.

As a sidenote, you could probably source the navigation code from https://github.com/mhinz/vim-tree, it has a navigation feature that keeps the cursor on the first character of directory/file name.

poetaman avatar Jun 24 '21 21:06 poetaman