I see the "ini" and "json" actions in CleanerML documentation.
Are those applicable only to those exact file extensions?
What about cleaning sections from XML files, where the file contains custom settings, plus search term history, etc? Is there any way to do this?
I looked at a couple of dozen cleaners. They involve deleting entire files, or using defined actions.
For instance, in Linux the ~/.gnome-commander/Gnome-Commander.xml file holds lots of custom settings, but also search terms, "replace with" data, and batch rename data.
Example section below to delete:
Entries between:
<History>...</History><SearchTool>
<WindowSize width="1034" height="745"/>
<Profile name="Default">
<Pattern syntax="shell" match-case="0">tmp</Pattern>
<Subdirectories max-depth="-1"/>
<Text content-search="0" match-case="0"></Text>
</Profile>
<History>
<Pattern>tmp</Pattern>
<Pattern>lz4</Pattern>
<Pattern>org.x.editor</Pattern>
<Pattern>xed</Pattern>
<Pattern>org.x.editor history</Pattern>
<Pattern>*history*</Pattern>
<Pattern>search</Pattern>
<Pattern>nemo</Pattern>
<Pattern>gnome-commander</Pattern>
</History>
</SearchTool>
Note: This forum software requires using ASCII characters for greater than and less than signs, even if the code is enclosed in code tags. Otherwise, anything enclosed by those signs doesn't display.
andrew
Permalink
Some of the commands in
Some of the commands in BleachBit version 1.17 include: delete a whole file, truncate a file, delete sections in a .ini file, delete sections from a JSON file, and vacuum an SQLite database. However, there is not a command to modify an XML file.
If you can do it using command line tools, BleachBit 1.17 has a 'process' command to run external commands.
---
Andrew, lead developer