Logseq

Error converting content: marked is not a function

- #0 Inbox
- checkout [mermaid](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermai) for rendering diagrams in markdown file. How about a logseq plugin for it? You can be the first person to contribute here #projectidea
- checkout logseq social
	  collapsed:: true
  - **07:45** quick capture:  https://briansunter.com/graph/#/page/logseq-social
  - **19:16** quick capture:  {{twitter https://twitter.com/bsunter/status/1536201412723363840?s=12&t=MtZ26COS33cSIDYYoyG_VA}}
- css for CANCELLED todo task +1
- #bugs
- font keeps changing when page is opened from side panel to main panel
- Awesomeness
- Assets are be referenced like block! Same picture can be in multiple pages without a copy.
	  id:: 6540ff6a-1814-4f8b-bf97-b48266cf57a8
- Timeline
- May 23rd, 2025 - **Major Asset Recovery & LFS Migration** #phew😅
  - **Root Cause**: Git LFS + iCloud sync conflict - files became `.icloud` placeholders, plugin committed empty files
  - **Solution Implemented**:
  - Migrated images from LFS to direct Git storage (reliability over size optimization)
  - Kept PDFs/audio in LFS (larger files, less frequently accessed)
  - Recovered 253 missing assets from iCloud backup folder (`/Users/sid/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/assets/`)
  - Total recovery: 263 assets (10 from Git history + 253 from iCloud)
  - **Backup Strategy**: Created `backup-to-icloud.sh` for manual secondary backups
    - Primary: GitHub (reliable, fast sync)
    - Secondary: iCloud compressed archives (disaster recovery)
  - **Key Learning**: Auto-commit plugins + cloud sync + LFS = dangerous combination
  - - Jul 20th, 2022
  - Added graph validator as github action that tests the graph for invalid block refs and queries via https://github.com/logseq/graph-validator
- Jul 15th, 2022
  - Pushed logseq repo to github remote [secondbrain-logseq](https://github.com/sidsarasvati/secondbrain-logseq)
  - tracking asset files with git-lfs Block Reference
- Learnings
- Jul 13th, 2022
  - 🧩 The most useful abstraction (lego brick) is a symbol  
		  id:: 62cea183-5e73-49a7-b89e-c21233f9ed73
- Use Journal dates instead of / scheduled or / deadline. Tasks next show up properly under the journal page. So to use task schedule we need advanced queries
  - “Give me a list that combines every open task scheduled for today or earlier (regardless workflow status) and all tasks with the workflow status of NOW (regardless of scheduling, even if it has no scheduling), ordered by schedule date.”
- Custom Css
  collapsed:: true
- Highlight
  - ^^My highlighted text^^
  - ```
		  mark { 
		    font-weight: bold;
		  }
		  ```
- Plugins
  collapsed:: true
- #Jul 6th, 2022 Trying out the youtube caption plugin by @Brian Sunter. Something I so wanted build to #progsum youtube video with #GPT3. An idea I got from that LinkedIn intern that reached out to me.
	  collapsed:: true
  - https://www.youtube.com/watch?v=kc4Gq-_Fq00
  - this is the Peter Pan story roughly speaking as Peter Pan is this magical boy pan means pan is the god of everything roughly speaking right and so it's not an accident that he has the name pan and he's the boy that won't grow up and he's magical well that's because children are magical they can be anything they're nothing but potential and Peter Pan doesn't want to give that up why well he's got some adults around him but the main adult is Captain Hook well who the hell wants to grow up to be Captain Hook first of all you've got a hook second you're a tyrant and third you're chased by the dragon of chaos with a clock in its stomach right the crocodile it's already got a piece of you well that's what happens when you get older time has already got a piece of you and eventually it's got a taste for you and eventually it's going to eat you and so Herc is so traumatized by that that he can't help but be a tyrant and then Peter Pan looks at traumatized Herc and says well no I'm not sacrificing my childhood for that so that's fine except he ends up king of Lost Boys in Neverland well Neverland doesn't exist and who the hell wants to be king of the Lost Boys and he also sacrifices the possibility that help a real relationship with a woman because that's Wendy right and she's kind of conservative middle-class London dwelling girl she wants to grow up and have kids and have a life she accepts her mortality she accepts her maturity Peter Pan has to content himself with Tinker Bell she doesn't even exist she's like she's like the fairy of porn she doesn't exist she's the substitute for the real thing and so but the dichotomy that you're talking about is very tricky because there's a sacrificial element in maturation right you have to sacrifice the plura potentiality of childhood for the actuality of a frame and the question is well why would you do that well one reason is it happens to you whether you do it or not you can either choose your damn limitation or you can let it take you unaware when you're thirty or even worse when you're 40 and then that is not a happy day you see I see people like this and I think it's more and more common in our culture because people can put off maturity without suffering an immediate penalty but all that happens is the penalty accrues and then when it finally hits it just Wallops you because when you're 25 you could be an idiot it's no problem even when you're out in a job search it's like well you don't have any experience and you're kind of clueless it's yeah yeah you're young you know it's no problem we can that's what young people are like but they're full of potential okay well now you're the same person at 30 it's like people aren't so thrilled about you at that point it's like what the hell have you been doing for the last ten years well I'm just as clueless as I was when I was 22 yeah but you're not twenty-two you're an old infant right and that's an ugly thing an old infant so the raised part of the reason you choose your damn sacrifice because the sacrifice is inevitable but at least you get to choose it and then there's something that's that's even more complex than that in some sense is that the problem with being a child is that all you are is potential and its really low resolution you could be anything but you're not anything so then you go and you adopt an apprenticeship roughly speaking and then you become at least you become something and when you're something that makes the world open up to you again you know like if you're a really good plumber then you end up being far more than a plumber right you end up being a good employer not not that plumbers I'm not putting plumbers down it's like more power to explore they've saved more lives than doctors so hygiene right so you know if you're a really good plumber well then you have some employees you run a business you you you make you you train some other people you enlarge their lives you're kind of a pillar of the community you you have your family it's you can once you pass through that narrow training period which narrows you and constricts you and develops you at the same time then you can come out the other end with a bunch of new possibility at hell at hand and young talked about that he thought that the proper part of the proper path of development in the last half of life was to rediscover the child that you left behind as you were apprentice it and so then you get to be something and regain that potential at the same time very very smart well he was very very smart so that's very wise very wise thing to know
			  
			  ^^Summarize top points of the text above #GPT3^^
    - 1. Peter Pan is a story about a boy who doesn't want to grow up because he doesn't want to become like the adults around him, who are tyrannical and have to contend with the inevitability of time.
				  
				  2. The story highlights the dichotomy between the potentiality of childhood and the actuality of adulthood.
				  
				  3. It is better to choose your own damn sacrifice than to let it take you unaware when you're older.
				  
				  4. The problem with being a child is that all you are is potential and it is really low resolution.
				  
				  5. Once you pass through the narrow training period of apprenticeship, you can come out the other end with a bunch of new possibilities.
  - -
- Scrachpad
  collapsed:: true
- - {{query "SCHEDULED: <Jun 21st, 2022" }}
- -
- Shortcuts
  - TODO turn word to page
  - TODO close side panel
  - ???
- Long form writing setup
  - Source: [Long form writing in Logseq](https://aryansawhney.com/pages/long-form-writing-in-logseq/) by @Aryan Sawhnew
  - Focus Mode Plugin
  - Use Document Mode (T-D)
  - Quattro Theme by @Alexander Rink
  - Also subscribed to his newsletter. Seems to be a smart dude contributing well.
  - - #+BEGIN_QUERY
	  {:title " Scheduled dates found in any block"
	  :query [:find (pull ?b [*])
	  :where
	  [?b :block/scheduled ?d]
	  [(not= ?d nil)]]
	  :collapsed? false}
	  :result-transform (fn [result]
	                       (sort-by (fn [b]
	                                  (get b :block/scheduled))
	                                  (fn [a b] (> a b))
	                                  result))
	  #+END_QUERY
- Development
  collapsed:: true
- plugin boilerplate repo - https://github.com/haydenull/logseq-plugin-react-boilerplate
	  collapsed:: true
	  * [[https://docs.logseq.com/#/page/queries][Queries]]
	  collapsed:: true
	  ** Examples
	  *** #+BEGIN_QUERY
	  {:title "Pages that start with abc"
	   :query [:find (pull ?p [*])
	        :where 
	        [?p :block/name ?name]
	        [(clojure.string/starts-with? ?name "abc")]]
	  }
	  #+END_QUERY
	  ** FAQ
	  collapsed:: true
	  *** Query todos in current page
	  collapsed:: true
	  **** {{query (and (task todo) <%current page%> )}}
	  ** Query Filters
	  collapsed:: true
	  *** logic operator
	  **** and, or, not, between
	  *** page
	  *** property
	  *** task
	  *** priority
	  *** page-property
	  *** page-tags
	  ** sort-by
	  * Logseq Usage
	  ** Page properties with special meaning - tags, icon and alias
	  *** tags:   will show "pages tagged with", rather than looking through linked references
	  *** icon:  add emojis to your most used pages in the side-bar to make your database easier on the eye.
	  *** alias: Very useful to aggregate pages!
	  ** Block Ref vs Block Embed
	  *** Block embed renders nested blocks. If I just need a solo block text I use ref.
	  ** [[https://docs.logseq.com/#/page/templates][Templates]]
	  ** [[https://docs.logseq.com/#/page/term%2Falias][Aliases]]
	  ** Page tags
	  ** Tables - use Markdown syntax
	  ** For Task Manager lets use - LATER -> TODO -> NOW -> DONE, yay? Where LATER is the backlog.
	  * #backlog
	  collapsed:: true
	  ** TODO figure out sorting task by priority and fix project queries Project
- resources
- [Cheet Sheet](https://cheatography.com/bgrolleman/cheat-sheets/logseq/)