Get list items with a tag and display without the tag

Language:: Plugin - Dataview
Program:: Obsidian
URL:: Reddit - Dataview Lines with Tag

Summary

Use dataview and regard to get and show items with a tag

Code


TABLE WITHOUT ID string(link(rows.file.link, rows.title)[0]) AS class, regexreplace(list(rows.L.text), "#exam", "") AS "exam"
FROM "3_semester"
FLATTEN file.lists AS L
WHERE contains(L.tags, "#exam")
GROUP BY file.link

Explanation

I use this snippet to list lines tagged with β€˜#exam’ in my folder "3_semester", which I adapted from this discussion. To show the tag too just remove the regexreplace().

Result

class πŸ”₯
After World
    • These are all amazing, post this some time
Blindsight
    • Awesome passage on Technology
    • This seems like the thesis to the entire book here, a lot of ideas baked into this passage, damn!
Blood Meridian
Omensetter’s Luck
    • Gemini Summary: This passage masterfully contrasts Henry Pimber's tortured inner world with his idealized perception of Omensetter. Henry feels alienated from nature, God, and even the simple passage of time, which terrifies him. He projects onto Omensetter a natural grace and effortless existence that he desperately lacks. The passage uses powerful sensory details (wind, cold) and symbolic imagery (water, precipice, the bather, the dried stream, the predatory miracle) to depict Henry's profound anxiety, guilt, numbness, and his terrifying sense of impending doom or judgment. It's a glimpse into a psyche deeply troubled and envious of a perceived, perhaps imagined, state of natural harmony.
Plato Complete Works
The Lathe of Heaven
    • Lacanian void, objet a
The Waves
    • Bernie as the night with friends comes to a close and off they must must must go, on with life
    • Bernie. Fucking beautiful
    • Wow, blown away by this gorgeous book
V.
    • V.'s love for peregrinations throughout an inanimate world until now. Tourism
Anti-Oedipus: Capitalism and Schizophrenia
    • This is the moment it started to click for me
    • Beautiful example, find some Turner paintings and add a
    • Beautiful literature example
The Logic of Sense
    • Love this chapter. There are some incredible literary devices to be learned through playing with series.
    • Being is a single voice, said in a single sense, not a single substance, but of multiplicities of beings and events, it is the eternal return, affirmation of all chance in a single moment
Fiction and the Figures of Life
    • Beautiful.

up:: πŸ§ͺ Code Diary