Brainberg
MF#K: Extract indented trees of text from anything with tatr
Software EngineeringMeetupFree

MF#K: Extract indented trees of text from anything with tatr

Tue 26 May · 16:00
Copenhagen, 🇩🇰 Denmark
< 50 attendees
Prosa (ADA lokale) · Vesterfarimagsgade 37A

About this event

Talk by Claes Worm

tatr is a new tool written in OCaml for recursively traversing file-hierarchies and finding all indented trees of text that match your queries. Its design tries to be simple, powerful, elegant and general.

A common action on the CLI is to search for all the files within some directory that contain a specific regular expression - e.g. using a mix of find and grep or tools that do both like ripgrep. These tools only match on lines, not on “sets of lines” or “related lines” or “trees of indented text” - tatr does this and filters the trees to only show the parts you are interested in.

What formats can you query? Anything that contains lines of text that are related to each-other based on indentation. E.g.:

  • bullet-point based notes like markdown, wiki, org-mode or plain text
  • notes with tags
  • code that contains comments
  • structured configuration-formats like json, sexp, etc.

When used with your notes; you suddenly get the opportunity to not only structure your notes by linking pages in a graph or tree - but also by tagging and logically relating “verbal arguments” via indentation.

https://github.com/rand00/tatr
https://r7p5.earth

As usual, there's mingling at the local bar after the talk.

Source: meetup