Skip to content

--type (or --type-add) for files with no extension? #1967

Answered by BurntSushi
thomcc asked this question in Q&A
Discussion options

You must be logged in to vote

So the first thing I did was find a query that gives me a hit in a .cpp file, a hit in a cpp file with no extension and a hit in a non-cpp file:

$ rg 'ABI compatible manner|Splice the instructions of the|to learn about the layout of the source code tree'
README.md
106:to learn about the layout of the source code tree.

libcxx/include/optional
362:// make the change in an ABI compatible manner.

mlir/lib/Transforms/Utils/InliningUtils.cpp
236:  // Splice the instructions of the inlined entry block into the insert block.

So with that in our back pocket, I don't think there is any way to express "match a file name without an extension" in the glob syntax supported by ripgrep. The problem is…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thomcc
Comment options

Answer selected by thomcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants