Giter Club home page Giter Club logo

Comments (3)

alphapapa avatar alphapapa commented on July 28, 2024

I don't understand exactly what problem you're reporting. You mentioned a few different things that don't sound right to me:

words that appear in those verse blocks don't render or work properly. I've attached a screenshot to show how they display:

I see the words in the screenshot, assuming you searched for happy. What's wrong there?

Functionality-wise, when I try to jump to one of the matches, it just goes to the start of the verse block rather than to the actual position of the word in the file.

This package has always searched by entries, i.e. headings and the text until the next heading. It has always jumped to the heading, not individual words below the heading.

Special blocks aren't treated specially; they're just entry text.

In the title of this issue you mention line breaks, but you didn't elaborate on it.

So I don't think there are any bugs here, maybe just a misunderstanding of how the package is designed to work.

FYI, you may also find the org-ql package helpful. It has some helm-org-ql commands. In a way, org-ql is the successor to this package, and might eventually supercede it (or become the backend for it). It also doesn't treat blocks specially, but if that's a feature you would find useful, feel free to mention it there, and I might be able to add support for searching them. For example, maybe a search inside a verse block could work like:

(verse "happy")

or

(block verse "happy")

from org-rifle.

termitereform avatar termitereform commented on July 28, 2024

Yup, you're right -- I misunderstood the intended output. I was expecting org-rifle to have a certain amount of context for each match (as the various grep commands do, for example), or for it to print relevant matches on separate lines, rather than running them together. Nevermind!~

from org-rifle.

alphapapa avatar alphapapa commented on July 28, 2024

I was expecting org-rifle to have a certain amount of context for each match

Well, it does have that. It's also configurable, e.g. helm-org-rifle-context-characters and other options in M-x customize-group RET helm-org-rifle RET.

or for it to print relevant matches on separate lines, rather than running them together.

That would probably be doable. If you're interested in that, feel free to make a feature request issue and I might work on it.

from org-rifle.

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.