比如我用的一个叫 consult-dir 的 package, 它的 consult-dir command 就用不了 regex, 如图. 不理解为什么, consult-line 就可以, 为啥它不行呢?
故意这么设计的,防止想要新建一个带特殊字符的文件结果做不到
https://www.gnu.org/software/emacs/manual/html_node/emacs/File-Names.html:
The character ‘$’ is used to substitute an environment variable into a file name. The name of the environment variable consists of all the alphanumeric characters after the ‘$’; alternatively, it can be enclosed in braces after the ‘$’.
是不是这个
1 个赞