{"issue":{"created_at":"2011-11-18T06:54:59Z","state":"open","updated_at":"2011-11-18T16:01:23Z","user":{"gravatar_id":"c3ebaf9a8c71280a64a4443e0e8060de","id":290367,"url":"https://api.github.com/users/JianCheng","login":"JianCheng","avatar_url":"https://secure.gravatar.com/avatar/c3ebaf9a8c71280a64a4443e0e8060de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":3,"body":"Hi,\r\n\r\nI am new in ack. \r\nThis is a wonderful tool. Thank you very much.\r\n\r\nI normally use cmake, so I would like to define cmake type in .ackrc like this\r\n--type-set=cmake=.cmake,CMakeLists.txt\r\nHowever, ack automatically adds dot and considers CMakeLists.txt as  .CMakeLists.txt ...\r\nIs it possible to define new filetype for CMakeLists.txt?\r\n\r\nThe current version of ack only ignores dirs with simple names in --ignore-dir\r\nI really hope ack works like .gitignore.\r\n\r\nThanks","assignee":null,"id":2277446,"number":198,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"new filetype not in the format *.xyz","closed_at":null,"html_url":"https://github.com/petdance/ack/issues/198","milestone":null,"url":"https://api.github.com/repos/petdance/ack/issues/198"},"action":"created","comment":{"created_at":"2011-11-18T16:01:23Z","updated_at":"2011-11-18T16:01:23Z","user":{"gravatar_id":"d1588981e0248aaa0174906c99df180e","id":41100,"url":"https://api.github.com/users/petdance","login":"petdance","avatar_url":"https://secure.gravatar.com/avatar/d1588981e0248aaa0174906c99df180e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm sorry, I missed that part.  Yes, you cannot make \"CMakeLists.txt\" be a --cmake file.  ack 1.x only handles extensions for determining filetypes.\r\n\r\nI've just added support for cmake to ack 2.0, though.  The default ackrc now will have these:\r\n\r\n    --type-add=cmake,is,CMakeLists.txt\r\n    --type-add=cmake,ext,.cmake\r\n","id":2790742,"url":"https://api.github.com/repos/petdance/ack/issues/comments/2790742"}}