org-rifle icon indicating copy to clipboard operation
org-rifle copied to clipboard

Pluggable abbreviations

Open codecoll opened this issue 5 years ago • 1 comments

Org rifle is great, I use it often and it gave me an enhancement idea.

For example, I search my notes for javascript stuff. I find it quickly, but it's annoying to type javascript or even javas often. Why can't I type js instead?

So I'd like to see a pluggable abbreviation feature where I could specify an alist for custom abbreviations.

E.g.

(setq org-rifle-abbrevs '(("js" . "javascript") ("ga" . "google analytics") ...))

With this set I could search for "js timer" and it would return "javascript timer" entries too. (And also the original "js" matches in case one wants to search for the original input, not the expanded abbreviation.)

codecoll avatar May 25 '19 19:05 codecoll

Sorry, I don't think this would be a good idea. It would make the searching code more complicated for little benefit.

For abbreviations and expansions, there are several built-in packages in Emacs. I use hippie-expand and dabbrev. You can use them in the minibuffer when typing a query.

alphapapa avatar May 26 '19 14:05 alphapapa