I'll be honest here. I don't have much experience with template files but 
regardless of whatever convoluted hacks GNOME and KDE use for that, which libfm 
can support or not depending on the developer's wishes, pcmanfm should have a 
simple system just like Thunar.

I place a file called 'Foo' in ~/Templates with content 'bar'. AFAICS pcmanfm 
should simply display 'Create New...'>'Foo', open a rename dialogue and create 
the new file with 'bar' contents.

If libfm tries itself to discover the kind of file (like by extension) the 
drawbacks are:
- impossible to have more than one different template with the same extension.
- impossible to choose the most descriptive name for the user.
- need specific hacks for the likes of .desktop, .directory etc. files to 
display their names (a .desktop file in XDG_TEMPLATES_DIR should not look for 
the 'Name' key).

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Pcmanfm-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pcmanfm-develop

Reply via email to