Comments (2)
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.
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)
- Sort results by timestamp not working HOT 2
- auto-toggle inline images in *helm-org-rifle-occur* window? HOT 1
- Support for ivy? HOT 2
- Creating process pipe: Too many open files HOT 16
- tag inheritance and/or file matching HOT 1
- don't truncate headings HOT 3
- Changing value of helm-org-rifle-fontify-headings to nil causes helm-org-rifle-org-directory to stop working HOT 3
- org-narrow-to-subtree: prevents showing other parts of file, still shows from other files
- command-line client HOT 1
- Search gives up on small strings HOT 6
- Prioritising heading matches HOT 2
- Wrong number of arguments error with helm-org-rifle--refile HOT 1
- Req: Indication of status (progress, no results, which files have been searched?) HOT 1
- Req: Results in current file displayed first HOT 1
- helm-collect-matches error HOT 1
- Is there a way to do a exact match? HOT 1
- Disabling helm-org-rifle-fontify-headings breaks helm-org-rifle-agenda-files HOT 6
- helm-org-rifle-directories: how to add many directories? HOT 1
- Limit candidates to those with certain properties HOT 1
- Fix warning "Helm source <file>: after-init-hook Should be defined as a symbol HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-rifle.