Skip to content

Instantly share code, notes, and snippets.

View tombarys's full-sized avatar

Tomáš Baránek tombarys

View GitHub Profile
@tombarys
tombarys / namespace-roam.css
Created May 29, 2022 17:41
Roam namespace styling CSS
span[data-link-title*="Video/"] span.rm-page-ref {
color: #795548;
font-weight: bold;
}
span[data-link-title*="Video/"]::before {
content: "📺"
}
@tombarys
tombarys / better-search.clj
Last active February 27, 2024 09:48
Better-search for Roam (V 2.11 improved + sorting)
(ns better-search-V2.1
(:require [reagent.core :as r]
[roam.datascript :as rd]
[roam.util :refer [parse]]))
(defn query-list [s-type search]
"creates a list of pages"
(sort (case s-type
:starts (rd/q '[:find ?fulltitle
:in $ ?search