1 Jun 2024 |
| adonyssantos joined the room. | 12:17:03 |
adonyssantos | those colors it is difficult to read | 12:17:04 |
| adonyssantos changed their display name from _discord_252461223881342976 to adonyssantos. | 12:17:05 |
lategan | It literally hurts my eyes somewhat | 12:17:37 |
lategan | * It literally hurts my eyes somewhat, but im sure it is a great tool to try | 12:17:55 |
adonyssantos | i am new with loseq, what is that? | 12:20:00 |
lategan | It is a way to track habits in Logseq is all I know, I am still reading | 12:20:38 |
adonyssantos | nice, i was using Notion, migrated to Obsidian and now moving to Loseq | 12:22:17 |
adonyssantos | i like that is open source and i would like to contribute in some way | 12:22:41 |
lategan | if you have the time, that woule be super helpful | 12:27:36 |
2 Jun 2024 |
autokludge | apparently that page is using css @media (prefers-color-scheme: dark) to do a rough-and-dirty dark theme | 00:51:09 |
autokludge | * apparently that page is using @media (prefers-color-scheme: dark) css to do a rough-and-dirty dark theme | 00:51:29 |
autokludge | the code highlighting looks much better with prefer light mode setting | 00:52:16 |
autokludge | (either way, I keep "[Dark Reader](https://darkreader.org/)" around which ensures minimum contrast levels are met. | 00:53:47 |
autokludge | bluescyphozoa i think it is as simple as adding (page-property ?p :week 22) into your where clauses | 01:39:24 |
| scrivener7771371 joined the room. | 19:39:22 |
scrivener7771371 | sort | 19:39:23 |
| scrivener7771371 changed their profile picture. | 19:39:23 |
| rektide joined the room. | 21:06:44 |
3 Jun 2024 |
| visuddha33 set a profile picture. | 02:01:22 |
| nika_02979 joined the room. | 03:07:33 |
.stvnsmth | Hey all, quick question around advanced queries, I've been running this simple query to find all journal entries from the past 60 days ( {{query (and [[Journal/Years/2024]](between -60d today)))}} ) but I'm trying to convert this to an advanced query so I can include it in config.edn — this was my first attempt: #+BEGIN_QUERY { :title "Journal Entries from Last 60 Days" :query [ :find (pull ?b [*]) :in $ ?start_date ?end_date :where [?b :block/refs ?page_ref] [?page_ref :block/name "Journal/Years/2024"] [?b :block/page ?p] [?p :page/journal? true] [?p :page/journal-day ?d] [(>= ?d ?start_date)] [(<= ?d ?end_date)] ] :inputs [ [:60d-ago] ; ?start_date [:today] ; ?end_date ] :result-transform (fn [result] (map (fn [r] {:block (first r)}) result)) :breadcrumb-show? false } #+END_QUERY | 04:01:06 |
autokludge | .stvnsmth whats up with the [[Journal//Years//2024]]? | 08:35:17 |
autokludge | #+BEGIN_QUERY
{
:title "Journal Entries from Last 60 Days"
:query [
:find (pull ?b [*])
:in $ ?start ?today
:where
(between ?b ?start ?today)
]
:inputs [:-60d :today]
:result-transform (fn [result] (map (fn [r] {:block (first r)}) result))
:breadcrumb-show? false
}
#+END_QUERY depending on what you are after, here's a basic version with your current transform | 08:49:55 |
autokludge | * clojure
#+BEGIN_QUERY
{
:title "Journal Entries from Last 60 Days"
:query [
:find (pull ?b [*])
:in $ ?start ?today
:where
(between ?b ?start ?today)
]
:inputs [:-60d :today]
:result-transform (fn [result] (map (fn [r] {:block (first r)}) result))
:breadcrumb-show? false
}
#+END_QUERY depending on what you are after, here's a basic version with your current transform | 08:50:14 |
autokludge | * #+BEGIN_QUERY
{
:title "Journal Entries from Last 60 Days"
:query [
:find (pull ?b [*])
:in $ ?start ?today
:where
(between ?b ?start ?today)
]
:inputs [:-60d :today]
:result-transform (fn [result] (map (fn [r] {:block (first r)}) result))
:breadcrumb-show? false
}
#+END_QUERY depending on what you are after, here's a basic version with your current transform | 08:50:20 |
| .paul1st joined the room. | 08:51:55 |
| .paul1st changed their profile picture. | 08:51:59 |
.paul1st | ![display_like_a_list.png](https://matrix.org/_matrix/media/r0/thumbnail/t2bot.io/a894045651685e7eec098d36d1a7d2414c8492121797551770914783232?height=360&method=scale&width=360) Download display_like_a_list.png | 08:52:00 |
.paul1st | ![table.png](https://matrix.org/_matrix/media/r0/thumbnail/t2bot.io/3f24b90678b736df5fb4e4e690be390995a33fbb1797551848538767360?height=360&method=scale&width=360) Download table.png | 08:52:15 |