Double Commander extension file based on Midnight Commander 3.0 extension file
All lines starting with # or empty lines are thrown away. All actions for file is showed in "Actions" submenu of file context popup menu.
File format:
[extension1|extension2|...|extensionX] Name=Category name Icon=Path to icon action1=command1 action2=command2 actionX=commandX
Where:
[extension] or [extension1|extension2 ...] — list of extensions (case insensitive !!no regular expression!!). ТAlso you can use "default" keyword as extension. In this case, if command had not found for sought file type, then will be used command from this section.
Name — Name of this category (showed in file association manager)
Icon — Path to icon that displays for this file types in file panel
Action can be:
open — used with tap on Enter or mouse double click
view — used with tap on F3
edit — used with tap on F4
other actions only is showed in "Actions" submenu of file context popup menu.
Command is any one-line shell command, with the simple macro substitution.
Macros should be (case sensitive):
{!VFS} — for archives — use virtual file system
{!EDITOR} — вcall editor (internal or external by configuration)
{!VIEWER} — call viewer (the same)
{!SHELL} — иuse shell from configuration to execute program (see mplayer)
<?command?> — execute 'command' in system shell and save stdout output to file and transfer it as parameter to previous command (see rpm for example...)
%f — filename
%d — directory
%p — path(directory+filename)