emacs/var/elfeed/db/data/3a/3a78659b1612c330c4b304b278a83c53434ba5a0
2022-01-03 12:49:32 -06:00

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 &quot;link&quot; to a sparse tree. </p> <p>So, if you have a &quot;tagA&quot; and like to see where it appears in the buffer, just create a link as &#39;tag-sparse:tag&#39; and follow it. </p> <p>Here it is the custom type link. :)</p> <pre><code>#+begin_src emacs-lisp (org-add-link-type &quot;tag-sparse&quot; &#39;em/sparse-tree-tag-link) (defun em/sparse-tree-tag-link (tag) &quot;Makes a sparse-tree from the linked tag.&quot; (org-occur tag)) #+end_src </code></pre> <p>That&#39;s it. Short, simple and sweet. I hope someone finds it useful. :)</p> <p>Best regards...</p> </div><!-- SC_ON --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/rpwezf/custom_link_to_sparse_tree/">[comments]</a></span>