talon-filetree icon indicating copy to clipboard operation
talon-filetree copied to clipboard

support right-click

Open jmegner opened this issue 2 years ago • 5 comments

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 avatar Sep 22 '23 19:09 jmegner

@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.

AndrewDant avatar Feb 26 '25 15:02 AndrewDant

Thanks for looking into it and all your great work!

jmegner avatar Feb 26 '25 19:02 jmegner

Just to be clear, I'm not the repo maintainer. Just a guy thinking about contributing cause I liked your idea.

AndrewDant avatar Feb 26 '25 20:02 AndrewDant

Ah. Still, thanks for looking into it.

jmegner avatar Feb 26 '25 20:02 jmegner

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.

david-tejada avatar Feb 27 '25 16:02 david-tejada