about summary refs log tree commit homepage
path: root/t/lei_external.t
DateCommit message (Collapse)
2021-02-25lei_external: don't treat IPv6 URLs as globs
IPv6 addresses are hexadecimals and colons inside brackets, so add some DWIM-ery to ensure we don't attempt to treat addresses like "http://[dead:beef]/foo/" as a glob.
2021-02-10lei_external: fix+test handling of escaped braces
While '{' and '}' are rare in path names, somebody may still use them or deal with software which does (e.g. GNU arch).
2021-02-10lei *external: glob improvements, ls-external filtering
The "ls-external" now accepts the same glob patterns used by with lei q --{include,only,exclude}. If no glob is detected, it will be treated as a literal substring match (like "grep -F"). Inverting matches is also supported ("grep -v").
2021-02-03lei q: support --only, --include and --exclude
-I is short for --include since it's standard for C compilers (along with Perl and Ruby). There are no single-character shortcuts for --exclude or --only, since I don't expect --exclude to be used very often and --only is already short (and will support shell completion).
2021-01-22lei: forget-external support with canonicalization
For proper matching, we'll do a better job canonicalizing URLs and path names for matching. Of course, users may edit the file outside of lei, so ensure we try both the canonicalized and as-is form provided by the user. I also don't think we'll need to store externals info in MiscIdx; just the config file is fine.