Skip to content

ini section globs #48

Description

@tiemay

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?

Activity

  1. az0 commented on Jul 25, 2014

    @az0
    Member

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

  2. tiemay commented on Jul 25, 2014

    @tiemay
    ContributorAuthor

    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
    
  3. ROCKNROLLKID commented on Oct 3, 2016

    @ROCKNROLLKID

    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?

  4. Tobias-B-Besemer commented on Mar 26, 2019

    @Tobias-B-Besemer
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions