Code Monkey home page Code Monkey logo

Comments (6)

toudi avatar toudi commented on June 1, 2024

right, here's another patch for the is_recursive option:

diff --git a/core/sherlock/indexer.py b/core/sherlock/indexer.py
index 4104234..07889c9 100644
--- a/core/sherlock/indexer.py
+++ b/core/sherlock/indexer.py
@@ -200,6 +200,8 @@ class Indexer(object):
                     if can_index:
                         path = os.path.join(dirpath, name)
                         self.__index_file(path)
+                if dirpath != dpath:
+                    self.__index_dir(dirpath) 
         pass

     def __index_file(self, filepath):

regards :D

from text-sherlock.

cbess avatar cbess commented on June 1, 2024

Thanks! I'll review the changes and get this merged.

from text-sherlock.

toudi avatar toudi commented on June 1, 2024

great!

i think text-sherlock is really great project. It certainly beats
installing tomcat :D however, i would like to extend this project a bit. is
that ok with you ? should i fork the project or sth?

i would like to add such features:

  • when you click on the results, the display page should link to specific
    line (right now it jumps to the beggining of file)
  • indexing directly from scm like git/svn/etc
  • indexing more than one branch
  • project's browser

also, currently when my query includes a slash (/) i don't find the
results. i don't know whether that is a bug of sherlock or xapian.

best regards,
toudi.

2012/11/14 C. Bess [email protected]

Thanks! I'll review the changes and get this merged.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-10368308.

pozdrawiam serdecznie,
Mateusz Mikołajczyk, a.k.a. toudi

from text-sherlock.

cbess avatar cbess commented on June 1, 2024

@toudi Thanks, yeh, I got fed up with Tomcat/OpenGrok setup and created text sherlock.

Line numbers was my next planned feature addition, so if you handled it that would be great. I'll make an issue for it.

As long as you make a unit test for the features and the other tests pass, I'll merge it.

I'm not sure about that '/' issue, separate issue?

Thanks for your contributions.

from text-sherlock.

cbess avatar cbess commented on June 1, 2024

@toudi Made an issue for line number: #13

I'm in the process of updating the db logic to support peewee 2.x. I tagged the current working package info.

from text-sherlock.

cbess avatar cbess commented on June 1, 2024

Fixed in 424cdd5. I found no recursive indexing issue.

from text-sherlock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.