I have the following in my config:
(setq counsel-find-file-ignore-regexp "\`[#.]\|[#~]\'")
which was taken straight from the documentation for counsel-find-file-ignore-regexp
. However, they still show up when I do counsel-find-file
. I suspect this is because ivy-text
matches them. For example xyz~
will show up.
- How can I make these files not show up when using
counsel-find-file
? - How can I make
counsel-find-file
explicitly make a file (e.gtest.cpp
) if it partially matches another file that already exists (e.gtest.cpp.inc
)? -- for example, as is, it would simply open the latter.
I referenced this post.
"\\`[#.]\\|[#~]\\'"
. See my answer to a different question with the same problem, particularly theEDIT
which explains why you need to double-up the backslashes.