本文介绍了如何确认忽略* .orig文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我把它放在我的.ackrc中:
I put this in my .ackrc:
--type-set=DUMB=*.orig
--noDUMB
...但是我仍在看到像main.py.orig这样的文件确认结果。我也尝试过-type-set = DUMB = *。*。orig
,但这也不起作用。
... but I'm still seeing files like main.py.orig in my ack results. I tried doing --type-set=DUMB=*.*.orig
too, but that didn't work either.
更多信息
从我的命令行运行(OSX Snow Leopard使用:
Run from my command line (OSX Snow Leopard with :
timmfin at lorien in ~/dev/performable/rafa on landing-pages-csv-and-more!
± ack modules --python | grep '.orig'
src/rafa/main.py.orig:25:import rafa.ui.modules.helpers
src/rafa/main.py.orig:26:from rafa.ui.modules.performable_form import PerformableForm
src/rafa/main.py.orig:27:from rafa.ui.modules.page_form import PageEditForm
src/rafa/main.py.orig:28:from rafa.ui.modules.settings_form import SettingsForm
....
timmfin at lorien in ~/dev/performable/rafa on landing-pages-csv-and-more!
± cat ~/.ackrc
--color
--sort-files
--smart-case
--type-set=sass=.sass
--type-set=coffee=.coffee
--ignore-dir=rafa/static
--ignore-dir=compiled
--ignore-dir=compressed
--ignore-dir=venv
--ignore-dir=build
timmfin at lorien in ~/dev/performable/rafa on landing-pages-csv-and-more!
± ack --version
ack 1.94
Running under Perl 5.10.0 at /usr/bin/perl
下以Perl 5.10.0运行
推荐答案
对于ack版本1.x
I发现如果我删除星号(从 )
I found this worked if I removed the asterisk (from the Ackmate wiki)
--type-set=DUMB=.orig
--noDUMB
通过运行(包括您在〜/ .ackrc中指定的文件),您可以查看支持哪些类型的文件确认:
You can see what types of file ackmate supports by running (including those you've specified in ~/.ackrc):
~/Library/Application\ Support/TextMate/PlugIns/AckMate.tmplugin/Contents/Resources/ackmate_ack --help type
这篇关于如何确认忽略* .orig文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!