I hereby claim:
- I am tombarys on github.
- I am tombarys (https://keybase.io/tombarys) on keybase.
- I have a public key ASBPcpWi4SCyW7abF46l_JW29vvogRUzcD3p2_Ep9rcu5Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
něco |
;; Warning: this plugin adds a "→ Move to tomorrow" item on both mobile and desktop Roam apps | |
;; to the context plugin menu and to command pallete (Mac: Cmd-P / Windows: Ctrl-P, then search for "Move" or "tomorrow" etc.). | |
;; To activate Roam context menu on mobile, you need to install Victor Tabori's Long-tap script first: | |
;; https://gist.github.com/thesved/48cab2307cf0598fcc5cd37643d36cb4 | |
;; Installation: | |
;; 1) copy this block as children block `clojure` code block under parent containing {{[[roam/cljs]]}} anywhere | |
;; in [[roam/cljs]] page | |
;; 2) confirm "Yes, I know what I am doing" | |
;; 3) restart Roam |
(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 |
;; Instructions for including the Clojure script (this) into your Roam can be found in my article | |
;; here: https://lifehacky.net/how-to-list-namespaces-and-find-more-in-roam-research-5c25d9f24556 | |
;; Search for section "How to make it work in your Roam?" and think of "better-search" as of "children-block-count" | |
(ns reddit.8-7-2022-reagent | |
(:require [roam.datascript :as rd] | |
[reagent.core :as r] | |
[roam.datascript.reactive :as rdr])) | |
(defn show-num [uid] |
(ns my-custom-roam-01072022 | |
(:require [roam.datascript :as rd] | |
[promesa.core :as p] | |
[clojure.string :as s])) | |
;; SETUP SECTION | |
;; 1) Open or create page [[roam/cljs]] in your Roam | |
;; 2) Create a parent block with {{[[roam/cljs]]}} | |
;; 3) Create a children block of the above block |
;; For all those who paste text from PDF into Roam using Copy-Paste or import via Readwise from PDF in the Reader app. | |
;; The problem is that there are often hard-coded "newline" characters at the end of lines in PDFs, | |
;; and words tend to be split by hyphens, which will break up the text when pasted into Roam. | |
;; I've made the simple script that cleans up the text, merges it, and if there's even a line shorter | |
;; than the preset threshold, treats it as the end of a paragraph (so it keeps the newline). | |
;; You can assign a keyboard shortcut to this, so it then works instantly. | |
;; Installation: | |
;; 1) copy this code as a children codeblock (`clojure`) under parent containing {{[[roam/cljs]]}} anywhere |
;; Warning: this plugin adds a "⇨ Move to next Monday" item on both mobile and desktop Roam apps | |
;; to the context plugin menu and to command pallete (Mac: Cmd-P / Windows: Ctrl-P, then search for "Move" or "monday" etc.). | |
;; To activate Roam context menu on mobile, you need to install Victor Tabori's Long-tap script first: | |
;; https://gist.github.com/thesved/48cab2307cf0598fcc5cd37643d36cb4 | |
;; Installation: | |
;; 1) copy this block as children block `clojure` code block under parent containing {{[[roam/cljs]]}} anywhere | |
;; in [[roam/cljs]] page | |
;; 2) confirm "Yes, I know what I am doing" | |
;; 3) restart Roam | |
;; 4) desktop: right-click on any block context menu (on the bullet) / mobile: long-tap the bullet |
;; Warning: this plugin adds a "→ Move to today" item on both mobile and desktop Roam apps | |
;; to the context plugin menu and to command pallete (Mac: Cmd-P / Windows: Ctrl-P, then search for "Move" or "today" etc.). | |
;; To activate Roam context menu on mobile, you need to install Victor Tabori's Long-tap script first: | |
;; https://gist.github.com/thesved/48cab2307cf0598fcc5cd37643d36cb4 | |
;; Installation: | |
;; 1) copy this block as children block `clojure` code block under parent containing {{[[roam/cljs]]}} anywhere | |
;; in [[roam/cljs]] page | |
;; 2) confirm "Yes, I know what I am doing" | |
;; 3) restart Roam |
;; Warning: this plugin adds a "X Erase this block" item on both mobile and desktop Roam apps, but to activate Roam context menu on mobile, you need to install Victor Tabori's Long-tap script: https://gist.github.com/thesved/48cab2307cf0598fcc5cd37643d36cb4 | |
;; 1) copy this block as children block `clojure` code block under parent containing {{[[roam/cljs]]}} anywhere on [[roam/cljs]] page | |
;; 2) confirm "Yes, I know what I am doing" | |
;; 3) restart Roam | |
;; 4) right-click on any block context menu (on a bullet) | |
;; 5) choose "X Erase this block" and confirm (attention: erases block including it's children; but do not worry: Cmd/Ctrl-Z works well) | |
(ns my-custom-roam-97 |