Comments (5)
Org has no built-in mechanism for tracking how often headlines are visited. org-recent-headings
does that, but whether a heading is considered visited depends on whether certain functions are called; see its customization options. Theoretically helm-org-rifle could consult org-recent-headings-list
to sort entries, but that would be slow when there are a lot of results.
There is no existing mechanism by which relevance could be calculated. Trying to do so would reduce performance, but you're welcome to propose such a mechanism, as it could be useful at times.
from org-rifle.
I have the same idea that there could be an optional (controlled by a customize option) bias for entries which are often selected. For example, if I search for "java" and I have lots of matches, but there are several matches which I often select for the search "java" then rfile could offer those first. Org rifle itself could keep a file storing which entries are selected by the user for which searches and using this file it could list those items first if the user does the same search again.
from org-rifle.
@nerton That request is essentially already provided by using a Helm command that combines the helm-org-ql
source with the org-recent-headings
source, like so:
(use-package helm-org-ql
:after org-ql
:config
(defun ap/helm-org-ql-and-recent-headings ()
"Search `org-recent-headings', and `org-directory' files with `org-ql'"
(interactive)
(helm :sources (list helm-source-org-recent-headings
(helm-org-ql-source (org-ql-search-directories-files)
:name " Org Directory Files")))))
Of course, you should have org-recent-headings
installed and activated. Then headings that you've recently viewed that match the query (at least, in the heading text) will be shown first. It works well for me.
from org-rifle.
Of course, you should have
org-recent-headings
installed and activated. Then headings that you've recently viewed that match the query (at least, in the heading text) will be shown first. It works well for me.
"at least, in the heading text". That is the key. org-rifle matches the whole entry, so if I search for "inflation" for example, then it lists entries even when "inflation" is in the body. If org-rifle supported order by usage frequency then the earlier selected item could be listed first when I search for "inflation" even if the match is in the body.
from org-rifle.
That could be useful, but to be clear, I don't plan to add a usage-frequency feature to this package. If there are certain headings that you access frequently, org-recent-headings
is designed for that express purpose. If there's a certain keyword in the body of an entry that leads you to it, you should probably add it to the heading or tag the entry with it. Or you could bookmark it with org-bookmark-heading
(and add Helm's bookmarks source to your Helm command).
If you haven't tried org-ql
yet, please do. It's like the "next-generation" of org-rifle
.
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.