mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
55 lines
2.7 KiB
HTML
55 lines
2.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<title>Structure of doublecmd.ext file</title>
|
||
<link rel="STYLESHEET" type="text/css" href="doublecmd.css"/>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||
</head>
|
||
|
||
<body>
|
||
<div class="CHAPTER">
|
||
<h1>Structure of <tt>doublecmd.ext</tt> file</h1>
|
||
|
||
<div class="SECT1">
|
||
<p>Double Commander extension file based on Midnight Commander 3.0 extension file</p>
|
||
<p>All lines starting with # or empty lines are thrown away. All actions for file is showed in "Actions" submenu of file context popup menu.</p>
|
||
<p>File format:</p>
|
||
<pre class="CODE">
|
||
[extension1|extension2|...|extensionX]
|
||
Name=Category name
|
||
Icon=Path to icon
|
||
action1=command1
|
||
action2=command2
|
||
actionX=commandX</pre>
|
||
<p>Where:</p>
|
||
<p><span class="bold">[extension]</span> or <span class="bold">[extension1|extension2 ...]</span>
|
||
— 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.</p>
|
||
<p><span class="bold">Name</span> — Name of this category (showed in file association manager)</p>
|
||
<p><span class="bold">Icon</span> — Path to icon that displays for this file types in file panel</p>
|
||
<p>Action can be:</p>
|
||
<ul>
|
||
<li><p>open — used with tap on <kbd>Enter</kbd> or mouse double click</p></li>
|
||
<li><p>view — used with tap on <kbd>F3</kbd></p></li>
|
||
<li><p>edit — used with tap on <kbd>F4</kbd></p></li>
|
||
</ul>
|
||
<p>other actions only is showed in "Actions" submenu of file context popup menu.</p>
|
||
</div>
|
||
<p>Command is any one-line shell command, with the simple macro substitution.</p>
|
||
<p>Macros should be (case sensitive):</p>
|
||
<ul>
|
||
<li><p><tt>{!VFS}</tt> — for archives — use virtual file system</p></li>
|
||
<li><p><tt>{!EDITOR}</tt> — вcall editor (internal or external by configuration)</p></li>
|
||
<li><p><tt>{!VIEWER}</tt> — call viewer (the same)</p></li>
|
||
<li><p><tt>{!SHELL}</tt> — иuse shell from configuration to execute program (see mplayer)</p></li>
|
||
<li><p><tt><?command?></tt> — execute 'command' in system shell and save stdout output to file and transfer it as parameter to previous command (see rpm for example...)</p></li>
|
||
<li><p><tt>%f</tt> — filename</p></li>
|
||
<li><p><tt>%d</tt> — directory</p></li>
|
||
<li><p><tt>%p</tt> — path(directory+filename)</p></li>
|
||
</ul>
|
||
</div>
|
||
<div class="SECT1">
|
||
<p class="NAVBACK"><a href="index.html">Home</a></p>
|
||
</div>
|
||
</body>
|
||
|
||
</html>
|