Files
Shell/docs/examples/copy-path.html
T
Mahmoud Gomaa 7ec2908a46 Code tag simplification
Highlight tags have been removed from the code tag
2022-09-14 09:17:19 +02:00

48 lines
1.6 KiB
HTML

<h5>Copy Path example</h5>
<pre><code class="lang-shell">shell
{
dynamic
{
// type can set with '~taskbar' equals all file types except taskbar.
menu(type='file|dir|back|root|namespace' mode=multiple title='copy to clipboard' image=#ff00ff)
{
// Appears only when multiple selections.
item(vis=@(sel.count > 1) title='Copy path (@sel.count) items selected'
cmd=@sys.copy(sel(false, "\n")))
item(mode=single title=@sel.path
cmd=@sys.copy(sel.path))
item(mode=single type='file|dir|back.dir'
vis=@sel.short.len!=sel.path.len title=@sel.short
cmd=@sys.copy(sel.short))
separator
item(mode=single vis=@(sel.parent.len>3) title=@sel.parent
cmd=@sys.copy(sel.parent))
separator
item(mode=single type='file|dir|back.dir' title=@sel.file.name
cmd=@sys.copy(sel.file.name))
item(mode=single type='file' title=@sel.file.title
cmd=@sys.copy(sel.file.title))
item(mode=single type='file' title=@sel.file.ext
cmd=@sys.copy(sel.file.ext))
}
}
}</code></pre>
<div class="has-text-centered my-5">
<a class="lightbox">
<img class="is-256" src="/images/docs/copypath1.png">
</a>
<a class="lightbox">
<img class="is-256" src="/images/docs/copypath2.png">
</a>
<a class="lightbox">
<img class="is-256" src="/images/docs/copypath3.png">
</a>
</div>