jEdit - 从“在目录中搜索”中过滤 SVN 目录/文件功能
使用 jEdit 程序员的文本编辑器,给定现有代码的目录,我一直在使用以下命令搜索和更新目录中的引用“目录搜索”功能。但是,该目录除了代码之外还包含 SVN 文件和子目录。
使用 jEdit 搜索代码目录时,是否有一种简单的方法可以过滤掉这些文件?
Using the jEdit programmer's text editor, given a directory of existing code, I have been searching for and updating references in directories using the "Search in Directory" function. However, the directory also contains SVN files and subdirectories in addition to the code.
Is there an easy way to filter out these files when searching through the code directories with jEdit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
显然,我没有使用正确的过滤语法。由于某种原因,我需要明确过滤掉这些文件。有关过滤语法的更多信息,请访问 http://www.jedit.org/users-指南/globs.html 。
Apparently, I wasn't using the correct filtering syntax. I needed to filter out the files explicitly for some reason. More information about the filtering syntax is available at http://www.jedit.org/users-guide/globs.html .
.svn 目录是隐藏目录,不是吗?因此,只需在该对话框中检查“跳过隐藏/备份”就足够了。或者是否还有其他您不想跳过的隐藏文件或备份?
如果是这样的话,事情可能会有点复杂。 “过滤器”仅适用于文件名,不适用于文件夹。如果您可以创建一个匹配 .svn 文件夹外部的文件或 .svn 文件夹内部的文件的过滤器,那么这是可能的。
The .svn directories are hidden directories, aren't they? So just checking "Skip hiddens/backups" in that dialog should be enough. Or are there other hidden files or backups you don't want to skip?
If so, it could be a bit complicated. The "Filter" is only applied to the filenames, not to the folders. If you can make a filter that matches the files outside the .svn folders or the files inside the .svn folders it would be possible.