Custom context menus in file system plugins

From TotalcmdWiki
Jump to navigation Jump to search

It would be great if a file system plug-in could provide custom context menus. For example the CVS Browser has some file operations which don't fit into the implemented commands.

Maybe these custom commands could be called not just in the context menu.


Implementation ideas:

1. FsGetSupportedCustomCommands

This function could be implemented similar to the ContentGetSupportedFields in the content plug-in interface. This function is called once for each FS plug-in.


2. FsExecuteCustomCommand

This function calls the operation implemented in the plugin. Which of the custom operation is called depends on the assigned index defined in FsGetSupportedCustomCommands.