AppManager icon indicating copy to clipboard operation
AppManager copied to clipboard

Customize Exported App List

Open pudah opened this issue 2 years ago • 1 comments

Please check before submitting an issue

  • [X] I am using the latest version of App Manager
  • [X] I have searched the issues and haven't found anything relevant
  • [X] I have read the docs

Describe a description of the new feature

The XML resulting from the Export App List feature contains a lot of very useful info. But sometimes I don't want everything. For example, I sometimes only need Label and Package Name, or Package Name and Installer Package, or any other combination. Right now I do some cumbersome post processing on the resulting XML file. It would be very useful if the user could select which fields are desired in the XML.

Describe the solution you'd like

I am wondering if some sort of template system might be created.

Possibly an option in Settings where the user can create named templates wherein the fields to include in the report can be specified.

Then when the user selects the option to produce the report from the apps list and is presented with the current XML or Markdown format options, a secondary list of the named templates would be presented if the user selects XML.

If not a template system per se, then perhaps at the time the user selects XML from the format list, a menu could then be presented that would allow the user to select which fields to include. It could either default to all fields and the user would deselect the ones he doesn't want, or no fields and the user would pick the ones he wants. Perhaps the last selected fields could be retained between uses.

Describe alternatives you've considered

If it is not feasible to disrupt the current XML report format, would it be possible to have an option to create some other type of output file like csv or json, still giving the user the option to specify which fields are included.

Additional context

No response

pudah avatar Oct 21 '23 16:10 pudah

If it is not feasible to disrupt the current XML report format, would it be possible to have an option to create some other type of output file like csv or json, still giving the user the option to specify which fields are included.

The purpose of the export feature (with XML in particular) is to allow a user to import the list as well (#122, #464). So, I need to think this through.

MuntashirAkon avatar Oct 21 '23 17:10 MuntashirAkon

I've decided to add support for straightforward formats, such as CSV and JSON without support for any customisation. You can customise the file later using another editing software such as spreadsheet editor.

MuntashirAkon avatar Jul 10 '24 04:07 MuntashirAkon

Thanks very much.

pudah avatar Jul 10 '24 13:07 pudah

Implemented in 941d4bac058afeeedc4ba5f18805178175bd1117

MuntashirAkon avatar Jul 11 '24 12:07 MuntashirAkon