junkblocker / codesearch-pre-github Goto Github PK
View Code? Open in Web Editor NEWMoved to https://github.com/junkblocker/codesearch
License: BSD 3-Clause "New" or "Revised" License
Moved to https://github.com/junkblocker/codesearch
License: BSD 3-Clause "New" or "Revised" License
Expanding on the idea from #9, I think the best solution is to separate different code repo into different indexes, because after all, developers working on a single project is rather rare -- I personally need to do code search on many different code repos.
I propose just adding a -name
to both index and search program, to separate different indexes.
Further, it's not only apply to different code repo, but even within the same repo, you can use -name
to divide them into logical groups whatever you like, if you find eliminating a section is constantly needed.
Anyone care to throw a quick scribble on how to use codesearch
in https://github.com/junkblocker/codesearch/wiki?
I only know first to do the index, then to do the search, but no more details than that...
Thank you sharing your fork!
It would be nice to support match highlighting. Ideally results could be highlighted both in codesearch and unite-codesearch.
Thanks for sharing your fork with us!
I really would like to use this fork for Unite codesearch.
Due to work requirements, I'm currently bounded to Windows. The Codesearch binaries for Windows are working fine (e.g. they are stored in my path, when I do csearch test
, they're working fine.
It seems they're not working together with your Unite codesearch.
Is there any chance to get this compiled into a binary, in order to get your plugin working for for Windows? Thanks in advance.
It would be convenient to be able to define a regex exclude path (similar to csearch -f but to not match instead)
Over on issue #50 on the google codesearch project I've been trying to sort out a problem where cindex fails to properly merge index files on windows. Someone over there said that you might be interested in addressing this problem, so here I am.
The main issue as far as I can tell is that the merge algorithm mmap's a few files but doesn't unmmap them. As a result, windows fails to overwrite the original index with the merged index (i.e. because the original index is mmap'd and, thus, apparently not writable). My diagnosis may well be incorrect in some details, but I'm pretty certain that cindex is unable to overwrite the original index.
Could you perhaps look at this and verify that I'm at least on the right track? And do you have any suggestions on how to best resolve this? I'm a newbie with go, but this feels like something that should be easy to address in the right hands.
Great to discover today there's an actively worked on fork of codesearch!
I am using codesearch already, and noticed that with lots of files reindexing is slow.
It would be great if one could tell the indexer to (re-)index a few files only and merge that efficiently into the existing index. Cursory inspection of the code tells me this should be doable.
A strong plus would be to read the file names - 1 per line - from a (named or regular) pipe, or else a regular file, and index those as soon as a new line becomes available.
Maybe an option --reindex-using < pipeOrFile > ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.