Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ini section globs #48

Open
tiemay opened this issue Jul 24, 2014 · 4 comments
Open

ini section globs #48

tiemay opened this issue Jul 24, 2014 · 4 comments
Labels

Comments

@tiemay
Copy link
Contributor

tiemay commented Jul 24, 2014

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
Copy link
Member

az0 commented Jul 25, 2014

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

@tiemay
Copy link
Contributor Author

tiemay commented Jul 25, 2014

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
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants