1 line
1.2 KiB
Plaintext
1 line
1.2 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>In a previous post <a href="https://www.reddit.com/r/orgmode/comments/rpu1yy/how_to_count_tags_cooccurrences_in_a_buffer_and/">How to count tags co-occurrences in a buffer and put them in a matrix</a> I talked about a simple way to "link" to a sparse tree. </p> <p>So, if you have a "tagA" and like to see where it appears in the buffer, just create a link as 'tag-sparse:tag' and follow it. </p> <p>Here it is the custom type link. :)</p> <pre><code>#+begin_src emacs-lisp (org-add-link-type "tag-sparse" 'em/sparse-tree-tag-link) (defun em/sparse-tree-tag-link (tag) "Makes a sparse-tree from the linked tag." (org-occur tag)) #+end_src </code></pre> <p>That's it. Short, simple and sweet. I hope someone finds it useful. :)</p> <p>Best regards...</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/edumerco"> /u/edumerco </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/rpwezf/custom_link_to_sparse_tree/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/rpwezf/custom_link_to_sparse_tree/">[comments]</a></span> |