Giter Club home page Giter Club logo

Comments (2)

alphapapa avatar alphapapa commented on July 28, 2024

Hi Dustin,

That seems like a good idea. The default function for showing entries is helm-org-rifle-show-entry-in-real-buffer, which calls org-show-entry, which says:

"Show the body directly following this heading.
Show the heading too, if it is currently invisible."

So what you probably want to do is call a function other than org-show-entry.

The easiest way to solve this now is for you to clone helm-org-rifle-show-entry-in-real-buffer to a new function with a different name in your config, set that as the helm-org-rifle-show-entry-function, and replace the call to org-show-entry with whatever you need.

Since you've brought this up, it probably makes sense to make the "reveal" function customizable as well, so I'll think about that and maybe do a bit of refactoring there. In the meantime, you should be able to achieve the desired behavior in your config. Let me know if you need any help with that.

Thanks for your feedback.

from org-rifle.

sandinmyjoints avatar sandinmyjoints commented on July 28, 2024

I had the same issue and adopted your proposed solution @alphapapa . The function I chose is org-show-children (shows the direct children of the entry). It works great!

(use-package helm-org-rifle
  :defer t
  :config
  (defun helm-org-rifle-show-entry-in-real-buffer (candidate)
    "Show CANDIDATE in its real buffer. Modified: see https://github.com/alphapapa/helm-org-rifle/issues/22"
    (helm-attrset 'new-buffer nil)  ; Prevent the buffer from being cleaned up
    (-let (((buffer . pos) candidate))
      (switch-to-buffer buffer)
      (goto-char pos))
    (org-show-children)))

Thanks for the suggestion and for all your work @alphapapa !

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.