BurntSushi/ripgrep

[globset] support more options on GlobBuilder?

Open

#2.229 geöffnet am 9. Juni 2022

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.559 Forks)batch import
enhancementhelp wantedquestion

Repository-Metriken

Stars
 (63.768 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 12h) (5 gemergte PRs in 30 T)

Beschreibung

Describe your feature request

Refer to GlobBuilder, it supports case_insensitive, literal_separator and backslash_escape.

I wonder if it can support more options includes:

/// Whether or not paths that contain components that start with a `.`
/// will require that `.` appears literally in the pattern; `*`, `?`, `**`,
/// or `[...]` will not match. This is useful because such files are
/// conventionally considered hidden on Unix systems and it might be
/// desirable to skip them when listing files.
require_literal_leading_dot: bool

/// if given pattern contains `**`, this flag check if `**` matches hidden directory.
/// For example: if true, `**` will match `.abcdef/ghi`.
recursive_match_hidden_dir: bool

Which mainly works for hidden directory or hidden file

Contributor Guide