Organizing notes with tags in org-mode

后端 未结 2 599
傲寒
傲寒 2021-02-01 08:06

So, I use org-mode extensively for my daily TODO requirements. I am wondering if I can also use it effectively for note keeping. What I basically want is to store notes with tag

相关标签:
2条回答
  • 2021-02-01 08:26

    You can use a tag search (C-c / m tag1 <ret>). Documentation here:

    http://orgmode.org/manual/Tag-searches.html

    This will create a sparse tree showing only the headings containing :tag1:, but it will not automatically reveal the contents of that heading as in your example.

    0 讨论(0)
  • The following function should provide the result you want.

    (defun zin/org-tag-match-context (&optional todo-only match)
      "Identical search to `org-match-sparse-tree', but shows the content of the matches."
      (interactive "P")
      (org-prepare-agenda-buffers (list (current-buffer)))
      (org-overview) 
      (org-remove-occur-highlights) 
      (org-scan-tags '(progn (org-show-entry) 
                             (org-show-context)) 
                     (cdr (org-make-tags-matcher match)) todo-only))
    
    0 讨论(0)
提交回复
热议问题