talon-filetree
talon-filetree copied to clipboard
support right-click
When in the standard Explorer bar, I can right-click on files and folders. I would like to do that in this extension's FileTree bar. It would go a big way to not needing to ever use the standard Explorer bar.
@jmegner I would really love to implement this feature but after doing some research I'm starting to worry it may not be possible. It isn't hard to find resources on implementing a custom context menu for a TreeView, but I haven't been able to find anything about enabling the normal file tree context menu in a different ViewContainer. As a half measure I could probably add all or most of the actions that this extension itself can do in a right click menu but that doesn't really remove the need to use the explorer for certain functions.
Thanks for looking into it and all your great work!
Just to be clear, I'm not the repo maintainer. Just a guy thinking about contributing cause I liked your idea.
Ah. Still, thanks for looking into it.
I also looked into this but I didn't have time to implement it. I think we could create a replica of the explorer context menu. We would need to create custom commands that use vscode.commands.executeCommand and replicate the native explorer commands. What I don't think it's possible to do is to add menu items that have been added by extensions.