google / codesearch

Fast, indexed regexp search over large file trees

Home Page:http://swtch.com/~rsc/regexp/regexp4.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cindex ignores IRC log files

GoogleCodeExporter opened this issue · comments

https://code.google.com/p/codesearch/source/browse/cmd/cindex/cindex.go#132 has 
the relevant line of code. Effectively when I run cindex on my IRC log 
directory, I get an index of *only* the private conversations. Public 
conversations are in files named after the channel, so for example: 
`2014/#ubuntu.03.log`.

cindex decides to ignore dotfiles, tildefiles, and for some reason probably 
relating to EMACS, files beginning with an octothorpe ('#'). There does not 
seem to be any command-line switch to disable this file-skipping (-a would seem 
appropriate), and no way to provide custom include/exclude rules.

Since searching IRC logs is probably more common for me than searching code, it 
makes this amazing tool rather less useful for me!

Original issue reported on code.google.com by geope...@gmail.com on 27 Mar 2014 at 5:03

Just as an FYI, this is implemented in my fork at - 
https://github.com/junkblocker/codesearch .

Original comment by manpreet...@gmail.com on 28 Mar 2014 at 3:13

  • Added labels: ****
  • Removed labels: ****
With thanks for your advice, please: may be you have an estimate for when your 
implementation will reach trunk.

Original comment by geope...@gmail.com on 28 Mar 2014 at 8:08

  • Added labels: ****
  • Removed labels: ****
rsc has stated in the past that this project is not super alive and is good 
enough for them in the state it is.

https://code.google.com/p/codesearch/issues/detail?id=26#c3

Also, this issue you filed has a similar bug already

https://code.google.com/p/codesearch/issues/detail?id=28

that hasn't been accepted for fixing. At this point I've kept on adding 
features  I've found useful to my code and it keeps diverging. If rsc indicates 
an interest in taking a patch, I could extract and attach one here. Otherwise 
using my fork remains your option.

Original comment by manpreet...@gmail.com on 28 Mar 2014 at 11:56

  • Added labels: ****
  • Removed labels: ****