cleanerml icon indicating copy to clipboard operation
cleanerml copied to clipboard

ini section globs

Open tiemay opened this issue 11 years ago • 4 comments

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?

tiemay avatar Jul 24 '14 21:07 tiemay

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

az0 avatar Jul 25 '14 02:07 az0

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

tiemay avatar Jul 25 '14 12:07 tiemay

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?

ROCKNROLLKID avatar Oct 03 '16 19:10 ROCKNROLLKID

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

Tobias-B-Besemer avatar Mar 26 '19 12:03 Tobias-B-Besemer