datatemplates icon indicating copy to clipboard operation
datatemplates copied to clipboard

Bring back datafile type autodetection

Open janbrohl opened this issue 5 years ago • 4 comments

Usage would be easier if at least some file types can be autdetected. For this, the datatemplate directive could be refreshed/reused. One option would be to handle autodetection there and then process specialized directives.

janbrohl avatar Jan 12 '20 14:01 janbrohl

How should we handle options like :header: that dont make sense for all file types? I would suggest accepting unused options and print a warning.

janbrohl avatar Jan 15 '20 07:01 janbrohl

#41 could make this easier.

janbrohl avatar Jan 17 '20 19:01 janbrohl

Maybe the directive that automatically detects the file format doesn't provide all of the options for all of the formats? So if you want to use an advanced option you use the directive that is specifically for that format?

dhellmann avatar Jan 18 '20 19:01 dhellmann

These are the 2 options and to me, both look valid. Why not do both? One possibility would be taking

.. datatemplate::

for the accepting approach (compatible) and

.. datatemplate:auto::

for the strict approach with minmal options.

janbrohl avatar Jan 19 '20 00:01 janbrohl