--- Em dom, 18/11/12, Sergio <[email protected]> escreveu:
> De: Sergio <[email protected]> > Assunto: Re: [Pcmanfm-develop] Templates support in libfm. > Para: [email protected], "Stephan Sokolow" > <[email protected]> > Data: Domingo, 18 de Novembro de 2012, 8:48 > 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). > *In short*: keep it simple! Don't incur on the mistake of trying to know better than the user. I have no idea whatever hack is there to discover the templates (I have no knowledge to read the code) but display the name the user defined for the file regardless of the extension in the 'Create New...' context menu and if libfm can't recognize the file as any known 'template', display it all the same (don't hide anything). That's my modest opinion and I admit I know very little about the possibilities in this subject. ------------------------------------------------------------------------------ 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
