Skip to content

regular expression inside zsh-completion script needs adjustments #356

@0x17de

Description

@0x17de

Example line: https://github.com/pimutils/todoman/blob/master/contrib/completion/zsh/_todo#L46
containing: s/^[^#]\s*path\s*=\s*\(.*\)$/\1/p
requires the string to start with any character but # followed by any amount of spaces, followed by path and so on.

To currently make it work one has to make the configuration lines start with a whitespace for the regular expression to match, since [^#] requires any character but #.

There are more similar regular expressions below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions