Filebrowser-commands.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 6: Zeile 6:
 
Copy:*:cp -r %M %D && echo Copied %M to %D
 
Copy:*:cp -r %M %D && echo Copied %M to %D
 
Move:*:mv %M %D && echo Moved %M to %D
 
Move:*:mv %M %D && echo Moved %M to %D
Cat:*:cat %f
+
Cat:!test -f %f:cat %f
Tail:*:tail -f %f
+
Tail:!test -f %f:tail -f %f
Execute?:*:%f
+
Execute?:!test -x %f -a -f %f:%f
 
Remove?:*:rm -rf %m && echo Removed %M
 
Remove?:*:rm -rf %m && echo Removed %M
 
File type:*:file %f
 
File type:*:file %f
Zeile 14: Zeile 14:
 
Unmount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f
 
Unmount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f
 
Playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist && echo Created /tmp/playlist
 
Playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist && echo Created /tmp/playlist
Unrar (p):*.rar:cd "$(dirname %f)"; unrar -p"$(basename %D)" -y e %f
+
Unrar (p):*.rar:cd "$(dirname %f)" ; unrar -p"$(basename %D)" -y e %f
Unrar:*.rar:cd "$(dirname %f)"; unrar -y e %f
+
Unrar:*.rar:cd "$(dirname %f)" ; unrar -y e %f
 
Unrar (list):*.rar:unrar l %f
 
Unrar (list):*.rar:unrar l %f
 
</pre>
 
</pre>

Version vom 2. Januar 2006, 17:00 Uhr

Konfigurationsdatei des filebrowser-plugins.

Datei
$VDRCONFIG/plugins/filebrowser/commands.conf
Mkdir:*:mkdir %D && echo Created %D
Copy:*:cp -r %M %D && echo Copied %M to %D
Move:*:mv %M %D && echo Moved %M to %D
Cat:!test -f %f:cat %f
Tail:!test -f %f:tail -f %f
Execute?:!test -x %f -a -f %f:%f
Remove?:*:rm -rf %m && echo Removed %M
File type:*:file %f
Mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f
Unmount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f
Playlist:*:for p in %M ; do echo ${p/#\/\///} ; done > /tmp/playlist && echo Created /tmp/playlist
Unrar (p):*.rar:cd "$(dirname %f)" ; unrar -p"$(basename %D)" -y e %f
Unrar:*.rar:cd "$(dirname %f)" ; unrar -y e %f
Unrar (list):*.rar:unrar l %f