bleachbit / cleanerml

System cleaners written in CleanerML used by BleachBit. Free disk space and maintain privacy.
https://www.bleachbit.org/news/bonus-pack-moved-svn-git
GNU General Public License v3.0
174 stars 48 forks source link

ini section globs #48

Open tiemay opened 10 years ago

tiemay commented 10 years ago

I'm writing a cleaner for Dragon Player. In ~/.kde4/share/config/dragonplayerrc it creates a section for each file opened:

[file:///tmp/0002-0040.ogv]
brightness = \s0
contrast = \s0
date = \s05/05/2014
hue = \s0
isvideo = \strue
preferred size = \s647,262
saturation = \s0

[https://upload.wikimedia.org/wikipedia/commons/8/83/Elephants_Dream_(high_quality).ogv]
brightness = \s0
contrast = \s0
date = \s08/06/2014
hue = \s0
isvideo = \sfalse
preferred size = \s647,262
saturation = \s0

So I tried doing <action search="glob" path="~/.kde4/share/config/dragonplayerrc" command="ini" section="*://*"/> and well it didn't work, I didn't think putting glob in the search parameter would help, but I was hopefull. Is there a way to use glob in the section parameter?

az0 commented 10 years ago

BleachBit 1.2 accepts only literals (no globs or regular expressions)

tiemay commented 10 years ago

At all? I can do <action command="delete" search="glob" path="~/test/Text File*"/> and it will find files setup as

+---home
|   +---user
|   |   +---test
|   |   |       New File
|   |   |       New File 1
|   |   |       New File 2
|   |   |       New File 3
ROCKNROLLKID commented 8 years ago

There were several updates to CleanerML in 1.10 and 1.12, including the ability to use negative regular expressions. Has anyone tried this at all with the latest build?

Tobias-B-Besemer commented 5 years ago

search="glob" belongs to the path & file and not the part in the INI file.