feat(api): Add new node selection action based on tab :drop command#2161
feat(api): Add new node selection action based on tab :drop command#2161gegoune merged 2 commits intonvim-tree:masterfrom
Conversation
|
@alex-courtis Please merge asap! |
gegoune
left a comment
There was a problem hiding this comment.
Have updated docs a bit and resolved styling.
Thanks for your contribution.
|
@gegoune I think we should provide and example somewhere in docs. Otherwise it's a black box for unfamiliar people. |
|
I am not against examples of course, is just that this one was not well placed. Other api don't provide any examples at all and this is what it should stay as. We can provide some example api usages on top of api help, more generic ones. |
|
@gegoune But where should such docs be placed? |
|
Actually there is already an example of how to use API functions in |
|
API would be great! |
|
@gegoune Well, it doesn't say explicitly that nvim-tree.lua/doc/nvim-tree-lua.txt Lines 1757 to 1777 in bb375fb |
|
It shouldn't list all the available namespaces, This is out of topic here now. If you think documentation can be improved please open new issue or better yet a PR. |
|
@ |
|
Well I could have made an improvement via this PR, but anyway. |
|
That wasn't what we wanted to add to docs. Please open new issue if you want to continue this conversation. |
|
How about we just add a Recipe ? The :help is factual and correct. |
NvimTree.Drop.selection.demo.mov
<CR>is hit, the same buffer window of the file is focused.Demo link:
https://user-images.githubusercontent.com/8136158/233742234-c4f4bb4b-1927-4ab4-b0cc-779c64a0e1b1.movPRs
PREVIOUS PRs got CLOSED BECAUSE OF FORCE-PUSH, GITHUB IS REALLY NUTS
Usage example