`

Searching Haml and SASS with ack

阅读更多
Reference
update
only thing is about the format and there are set and add.


If, like me, you've recently discovered the wonderful speed of the ack search tool, you may be frustrated to find that it ignores some of your source code. Files that you know should be appearing in your search results just don't show up, as ack doesn't consider .haml or .scss files to be worth searching. Well, we can fix that.

Ack has a list of "types" of text that it will search for your phrase, such as "HTML" or "C source code". Each type corresponds to one or more filename extensions. For example, .htm, .html, .shtml and .xhtml files are considered to contain HTML, and .c, .h and .xs are recognised as C source.

To see the full list of types, enter:

$ ack --help types


If you want to tell ack to search your .haml, .sass and .scss files as well, you can configure it with the ~/.ackrc file:

#cat ~/.ackrc
--type-set=haml=.haml
--type-set=sass=.sass
--type-set=coffee=.coffee
--type-add=ruby=.haml
--type-add=js=.coffee
--type-add=css=.sass,.scss


For more info see the ack man page (which you can read by typing ack --man if man ack can't find it).
分享到:
评论

相关推荐

    Divide and Conquer, Sorting and Searching, and Randomized Algorithms python 版答案

    斯坦福algorithm part1 Divide and Conquer, Sorting and Searching, and Randomized Algorithms python 版答案

    Graph Searching Games and Probabilistic Methods

    根据给定文件信息,需要生成的IT知识点涉及图搜索游戏和概率方法。由于提供的内容是一系列电子书的列表,这些书籍被归类到离散数学及其应用。为了满足字数要求,我将尝试梳理出与“图搜索游戏”和“概率方法”相关的...

    Web Searching and Mining

    Web Searching and Mining (Cognitive Intelligence and Robotics) ISBN-10 书号: 9811330522 ISBN-13 书号: 9789811330520 Edition 版本: 1st ed. 2019 出版日期: 2019-02-04 pages 页数: (176) This book ...

    ASP.NET MVC with Entity Framework and CSS

    • Filtering and Searching Related Data using Linq • Using code first migrations to automatically update the database plus seeding data from code • How to use Visual Studio Scaffolding views and ...

    Ulam’s searching game with.pdf

    Ulam’s searching game with a fixed number of lies is not only a fascinating theoretical problem but also has implications for various real-world applications, such as data validation, error ...

    Searching for Solutions in Games and Arti?cial Intelligence

    证明五子棋带禁手时黑棋必胜Sp eculations and AI 1.2 Identifying the obstacles 1.3 Uncovering hidden obstacles 1.4 The problem statement : 1.5 1.6 Solving games 1.7 Thesis outline

    文献查询及索引information searching and referencing.ppt

    文献查询及索引information searching and referencing

    ASP.NET MVC with Entity Framework and CSS [2016]

    • Filtering and Searching Related Data using Linq • Using code first migrations to automatically update the database plus seeding data from code • How to use Visual Studio Scaffolding views and ...

    Reliable peers and useful resources Searching

    ### 可靠同伴与有用资源:寻找个性化学习路径 #### 概述 本文探讨了如何在信任和推荐意识环境中寻找最合适的个性化学习路径。随着Web 2.0的发展和对等网络(P2P)的广泛应用,我们能够从分散的数据源获取越来越多...

    The Art of Computer Programming Volume 3 Sorting and Searching, 2nd Edition

    《计算机程序设计艺术 第3卷 排序与搜索(第二版)》是计算机科学领域的一本经典著作,由Donald Knuth撰写。这本书深入探讨了排序和搜索算法的理论与实践,是计算机科学家和软件工程师的重要参考书籍。...

    sorting and searching algorithms(Thomas Niemann)

    ### 排序与查找算法概览 #### 一、引言 在《排序与查找算法》这本书中,作者托马斯·尼曼(Thomas Niemann)深入浅出地介绍了多种排序与查找算法,并且提供了相应的代码实现。本书适用于对计算机编程有一定了解的...

    The Art of Computer Programming, Volume 3 Sorting and Searching 2nd Edition 1998

    《计算机程序设计艺术》系列被公认为计算机科学领域的权威之作,深入阐述了程序设计理论,对计算机领域的发展有着极为深远的影响。本书为该系列的第3卷,全面讲述了排序和查找算法。书中扩展了卷1中数据结构的处理...

    XML Processing with Perl, Python, and PHP (2002).pdf

    age systems that rely on managing and dealing with a lot of text, but in a structured way that is somehow intelligent enough to know what I’m storing but flexible enough not to restrict what it is I ...

    PHP 7 - Data Structures and Algorithms

    Work with sorting, searching, and recursive algorithms ? Make use of greedy, dynamic, and pattern matching algorithms ? Implement tree, heaps, and graph algorithms ? Apply ...

    计算机程序设计与艺术第三卷:排序与查找Sorting and Searching(中英)

    第三卷——《排序与查找》(Sorting and Searching),更是程序员们在算法学习阶段必读的经典文献之一。 在这本书中,高德纳教授深入剖析了排序和查找这两个基本操作,它们是计算机科学中数据处理和信息管理的基础...

    Algorithms: Design and Analysis

    The book also has 10 appendixes which include topics like probability, matrix operations, Red-black tress, linear programming, DFT, scheduling, a reprise of sorting, searching and amortized analysis ...

    OpenCV with Python Blueprints

    Track visually salient objects by searching for and focusing on important regions of an image Detect faces using a cascade classifier and recognize emotional expressions in human faces using multi-...

Global site tag (gtag.js) - Google Analytics