0

Is it possible to have a flow in Emacs similar to LogSeq whereby the user can call one tag (e.g., #quotes) and have a buffer filled with all the text that matches such tag? I suppose the closer thing is to do grep, but I was wondering if there was something more sophisticated that would collect all the entire blocks belonging to a specific tag. Thanks!

Solution here: https://emacs.stackexchange.com/a/70981/15546

7
  • 1
    A method like the one described here would allow you to do a tags search in a set of Org mode files and collect all the matches in one buffer, but that would be only the headlines. You can easily get to the full text of the headline (in a different buffer) by pressing SPACE. Not sure whether that meets your requirements though. See the Org manual for some details on this kind of search.
    – NickD
    Commented Mar 17, 2022 at 1:18
  • 1
    In fact, the above mechanism can be used to export the agenda with not just the headlines but (depending on the option org-agenda-add-entry-text-maxlines) part or all of the body of each headline as well.
    – NickD
    Commented Mar 17, 2022 at 3:11
  • I will have a look, thanks! It seems that I can search beyond my agenda files, which is the purpose as I want to search within newly created notes. Commented Mar 17, 2022 at 7:23
  • 1
    You might find @gusbrs's comments in this question useful.
    – NickD
    Commented Mar 17, 2022 at 12:09
  • 1
    Check my answer to the linked question and see if it helps you with this one.
    – NickD
    Commented Mar 18, 2022 at 3:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.