
- #ITHOUGHTSX FONT COLOR HOW TO#
- #ITHOUGHTSX FONT COLOR CODE#
Get an array of the drafts in the current workspaceĭrafts = ("inbox")
#ITHOUGHTSX FONT COLOR CODE#
It also now writes to the clipboard.Īnyhow here’s the code as it currently stands: // Takes the drafts from the current workspace and makes a I’ve also - thanks to - changed the code so that it processes all the drafts in the current workspace. It could be legitimate to have two sets of words for the same external link or it could be unintended inconsistency. The question is whether to detect such potentially misformed duplications and colour them yellow. You might guess that “Beeb News” and “BBC News” point to the same URL. I’ve softened the colouring and added a new one: Green for external links. One extension I might build would be to add nodes for external links - probably in a different colour. If I could solve the UI problems I’d be happier. It’s been an interesting prototype to build. Import the file into GraphViz or run dot against it.Scrape the entry in the console log, omitting the last line.Change the workspace in the first line.Help with the above would be appreciated.
#ITHOUGHTSX FONT COLOR HOW TO#
I don’t know how to copy a string to the clipboard - so the resulting string is written to the console. I don’t know how to find the current workspace - so the first line needs to be changed to the workspace you’re interested in. GraphViz += ' N' + i.toString() + ' -> M' + missingDraftIndex.toString() +' \n' GraphViz += ' M' + missingDraftIndex.toString() + '\n' MissingDraftIndex = missingDrafts.length - 1 MissingDraftIndex = missingDrafts.indexOf(otherDraftName) GraphViz += ' N' + i.toString() + ' -> N' + otherDraft.toString() +'\n' Process each draft to get its title and the titles of the drafts it links to Get an array of drafts in the workspace So here is the code, with each draft being accessed by clicking on the node: // Get the workspace I think this might be akin to Zettelkasten’s “structure notes“? Terminal nodes in that map either link to specific drafts or to keywords for a Drafts search action. Still dreaming in this direction…Īnother way to think about this: for a while I was using an iThoughts map to serve as a top-level overview for themes/topics/subjects in my notes. D3.js is great for visualisation, I just can’t see my way to coding for something for that with my current grasp of javascript.Īfter thinking further, I arrived at the conclusion that visualising the already hardwired links between documents probably wasn’t all that meaningful for me- what I might actually be thinking about is some way of doing this: - and that the graphed visualisation is nice to look at, but that what it actually facilitates is foregrounding unexpected connections (rather than the connections that already exist). Nomnoml syntax looks like it would be easy to work with. Mermaid.js- has already done some work on an action to make it possible to render Mermaid diagrams from simple syntax in Drafts. Over the weekend, I went back to playing around with a few Javascript visualisation libraries. With that, and the fact that the map you create when you move from Drafts to iThoughts isn’t “live”- I’ve ended up not making much use of the actions I’ve already experimented with. Even if there’s a way of communicating the necessary information from Drafts (how a note links to other notes, beyond a hierarchy of indents), iThoughts currently doesn’t render those kinds of links particularly well- for example, cross-branch links have to be manually arranged so as not to cross through nodes. Cross-links across branches work differently than regular child-parent connections. I don’t think it’s as easy to graph a visualisation of networked notes rather than branch/tree nodes, however.
You can write markdown links in iThoughts nodes, so it’s again easy to construct tidy links that point back to individual drafts. I’d been thinking about this as well! Haven’t brought it up because I appreciate that Drafts != Roam/Obsidian/Logseq, and as queried, I do wonder what benefit graphing actually offers.Įxporting hierarchical “trees” of notes to iThoughts is relatively easy to do- I’ve already hacked together a couple of actions based on this notion.