obsidianmd

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

surrendertogravity, in How to use Dataview for notes that contain multiple values for a single field?
@surrendertogravity@wayfarershaven.eu avatar

Just mentioning to cover all the bases: you’ll want to make sure you’re using the correct multi-value YAML syntax in your front-matter when you include multiple authors (eg. single line or multi line array). I like using the Linter plugin to help me out with this.

<pre style="background-color:#ffffff;">
<span style="color:#323232;"># single-line array
</span><span style="color:#323232;">author: [Sam Jones, Mary Apple]
</span><span style="color:#323232;">
</span><span style="color:#323232;"># multi-line array
</span><span style="color:#323232;">author:
</span><span style="color:#323232;">- Sam Jones
</span><span style="color:#323232;">- Mary Apple
</span>

Once you have something like the above, using flatten should enable returning results for either author; with one test file in my vault, this worked for me:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">TABLE WITHOUT ID
</span><span style="color:#323232;">link(</span><span style="color:#0086b3;">file</span><span style="color:#323232;">.</span><span style="color:#0086b3;">link</span><span style="color:#323232;">, title) </span><span style="font-weight:bold;color:#a71d5d;">as </span><span style="color:#183691;">"Title"</span><span style="color:#323232;">, author </span><span style="font-weight:bold;color:#a71d5d;">FROM </span><span style="font-style:italic;color:#969896;">#books FLATTEN author WHERE author = "Sam Jones"
</span>
Windexhammer,

I used this for my recipe notes:


<span style="color:#323232;">ingredients:
</span><span style="color:#323232;">- name     : Carrots
</span><span style="color:#323232;">  quantity : 2
</span><span style="color:#323232;">  units    : ""
</span><span style="color:#323232;">  format   : grated
</span><span style="color:#323232;">- name     : Curry Powder
</span><span style="color:#323232;">  quantity : 1
</span><span style="color:#323232;">  units    : tbsp
</span><span style="color:#323232;">- name     : Onion
</span><span style="color:#323232;">  quantity : 1
</span><span style="color:#323232;">  format   : sliced
</span>

And then use FLATTEN ingredients to create a nicely formatted table of ingredients.

Michelle, in What are the keyboard shortcuts you use the most?

I’d recommend going into settings/options and having a look at the “Hotkeys” tab. There’s a lot of things that aren’t currently set, or default hotkeys that might be useful to you, like:

  • Toggle pin - (not set by default) I set this to ctrl + shift + p which pins the current tab so it can’t be replaced with another tab
  • Close current tab - By default it’s set to ctrl + w
  • Command palette - opens the command palette. By default it’s set to ctrl + p. The command palette is amazing because it shows you everything in the “Hotkeys” tab. So you don’t even need a hotkey set to use something. Like you can open the command palette and search for “release notes” and it will show you the current release notes. If you have the emoji plugin installed, you can open the command palette and search for “emoji” and it will open the emoji toolbar.
  • Quick switcher - search by note title. By default it’s set to ctrl + o. But I have the Omnisearch plugin installed so I set this hotkey to that instead.

The plugin QuickAdd is really useful here as well, you can create your own hotkeys. I made one so when I press ctrl + n it creates a new note in a specific folder with today’s date and time as the file name, so I can quickly write something down.

unnoted, in How do you organize your quotes?

If I’m understanding you correctly, I think I do something similar to track my book reading progress. I log my book reading progress in my daily note, with a [[link to bookname]] and then use dataview to also list all the progress entries inside the note for the book.

on my daily page, I’ll have something like this:


<span style="color:#323232;">## Reading
</span><span style="color:#323232;">* [[Tomorrow and Tomorrow and Tomorrow _ Gabrielle Zevin]] - 20%
</span><span style="color:#323232;">    really enjoying this book so far! the perspective changes... (paragraph snipped)
</span>

(I’m not sure it’s obvious above, but I do the four spaces thing to nest a paragraph under the bullet point.)

Then on the page for the book itself, I have this dataview query


<span style="color:#323232;">```dataview
</span><span style="color:#323232;">LIST
</span><span style="color:#323232;">regexreplace(replace(L.text, "[[" + this.file.name + "]]", ""), "^[ :-]*", "")
</span><span style="color:#323232;">FROM [[]] and "Log"
</span><span style="color:#323232;">flatten file.lists as L
</span><span style="color:#323232;">WHERE meta(L.section).subpath = "Reading" and contains(L.text, this.file.name)
</span><span style="color:#323232;">sort file.name
</span><span style="color:#323232;">```
</span>

I think for you, you would replace the check I’m doing for the section heading = Reading with a check for the tag instead. The replace and regex business is just so I don’t wind up repeating the [[link to bookname]] inside the note for the book, and also to shave off some inconsistent formatting I’ve used over time. What displays on my book page is something like this:


<span style="color:#323232;">* 2023-06-09: 20%
</span><span style="color:#323232;">    really enjoying this book so far! the perspective changes... (paragraph snipped)
</span>

(with a link back to the original daily note)

By the way, I couldn’t figure out a way to do this using dataview without using list items (and nesting paragraphs under the list item). I think because dataview indexes list items, but won’t necessarily index other blocks of text? (The future version of dataview, datacore does mention supporting queries at the section and block level though.)

Hope this gives you some ideas!

brayd,

Yes, this is helpful but still very complicated to have it fluid. Could be something for a plugin that somebody could write, that expands Dataview with this tho

god,
@god@sh.itjust.works avatar

Pioneers have it hardest lol, that’s why you guys see a little seen problem and you have to write a bunch of code to do it and propose it be abstracted into a plugin. But if it’s a little seen problem, the likelihood of actually getting that plugin is slim unless you yourselves develop it or convince someone to do it. It won’t happen spontaneously.

curtismchale, in What are the keyboard shortcuts you use the most?
@curtismchale@lemmy.ca avatar

CTRL - P to get to all the available commands in Obsidian.

dethb0y, in How interested are you in using LLM AIs (such as ChatGPT) in your vault? How important is it, that they're running locally and private (like GPT4All)?

I’ve not thought of a good use case for the technology myself, but if i were to use it i’d prefer it be local just for conveniences sake.

ilbradipo, in ObsidianMD on Lemmy!

Thanks a lot. Now I can delete my Reddit account

nightscout, in I attempted to promote this community on Reddit. Here is how it went
@nightscout@lemmy.world avatar

I’m finding sub.rehab to be the best resource for making the switch. If you haven’t submitted the link for this community, please do! Reddit is taking down a lot of the “here’s our community on Lemmy” posts so I’m just directing everyone to sub.rehab so they can find theirs communities for themselves. I think this central resource is the best way to do this.

spencerwi, in What apps do you use in conjunction with Obsidian?

I mostly just use Syncthing for syncing the files, and otherwise I let Obsidian do the driving.

nightscout,
@nightscout@lemmy.world avatar

I’m fine with Obsidian on desktop and I love that they have a fully-featured app, but the experience on mobile and iPad with the obsidian app is not the best UI experience. I also find it to be a bit buggy at times.

laroquephoto,
@laroquephoto@mstdn.social avatar

@nightscout @spencerwi
IA Writer works very nicely with Obsidian. The styling looks different, YAML is visible, and anything outside markdown won't be rendered, but it reads and writes perfectly (although I rarely find a need for it anymore). The iPad app has come a long way but yeah, it's not perfect yet.

nightscout,
@nightscout@lemmy.world avatar

That’s one app I really wanted to try to use but they don’t yet have a trial or monthly subscription option for iOS (supposed to release one). I didn’t want to pay $50 for it just yet.

EpiphanicSynchronicity,
@EpiphanicSynchronicity@pkm.social avatar

@nightscout @laroquephoto At $50, the mobile version of iA Writer has become way overpriced, especially if you’re only going to use it on an iPhone. Imo 1Writer is pretty much equally good (I own both) and last I looked it only costs $5. Fwiw, you can also sign into Dropbox with it, which you can’t do with iA Writer.

dethb0y, in What apps do you use in conjunction with Obsidian?

This is really difficult to break down because it’s (by nature) complicated. but:

  1. A custom python script that reads RSS feeds, picks out keywords, and posts them to a special file with a checkbox. This then monitors the checkboxes so it doesn’t repeat a story (still happens but not as bad as without)
  2. A custom python script that checks a bunch of websites for things like when a new video is uploaded. This uses webscraping and is highly customized to each site.
  3. This one’s pretty neat: I use Lynx to do a text dump of wttr.in THEN i use a custom python script to add the sunrise, sunset, and moon phases to that text file so it displays them. Since wttr.in goes down fairly often due to overuse, it’s also got bypasses built in so it at least shows me the sun/moon info even if the site read fails.

All that runs every hour, though due to intentional design choices it varies the time slightly to avoid being detected for being to regular.

Then, once a day at midnight, it copies my entire vault to a backup directory and puts it into a dated backup folder.

Since the entire thing runs via a single shell script it’s easy to start up when i do a reboot. very fire-and-forget.

meanwhile in Obsidian itself i have several panes set up - for the updates, the weather etc - that “bracket” my main viewing page + my calendar.

grabyourmotherskeys,

I love that weather site, thank you for posting it. :)

dakerDraws, in Dataview table from different folders
@dakerDraws@pawb.social avatar

Just to make sure I understand, you want your Author notes to have a Dataview table containing all the books they’ve written?

For each Book note, do you have a field (either in YAML or inline Dataview) pointing to the Author note? What I personally do is have an inline field that links to the Author note:

Author:: [[Stephen King]]

Then in the Author note I’ll have this:

table without id link(file.link,title) AS Book, Year FROM “BOOK FOLDER” WHERE contains(Author, this.file.link)

Replace BOOK FOLDER with wherever your books are. Then you can paste this into all your Author notes. Even better, make an Author template so you don’t have to type it each time you make an Author note.

grabyourmotherskeys, in using the spaced repetition plugin to make better notes

I do this myself. I’ll touch up a note or link it to something else, maybe close off or add a task.

I really feel this is the way to unlock the real potential of note taking.

dwindling7373, in Beginner's guide to AidenLx's Zotero Plugin (moved from Reddit)

Sounds cool but you forgot to mention what it does for us humans.

MagicChicken,

That’s what the guide is for ;)

surrendertogravity, in What pkm method do you use in your vault? OR What are the best PARA method alternatives?
@surrendertogravity@wayfarershaven.eu avatar

I tried out the PARA method, but so far it feels too involved with fiddling in the file system and I’m not really using it anymore. I use the “open file” command palette as my primary form of navigation, backlinks and other internal links secondarily, so folder organization doesn’t actually matter to me. I plan to un-PARA my folders and simplify them as much as possible so I can continue to ignore the file system organization.

dethb0y, in Pasting files (xls files, specifically) into notes

I am curious to as the ! is very annoying when it happens unexpectedly

johsny,
@johsny@lemmy.world avatar

I asked on the official forum, nobody there seems to know either. I just remove them manually for now, maybe somebody will make a plugin sometime that gives you the option to have either.

ambystoma, in Your favourite themes
@ambystoma@feddit.de avatar

Typomagical. I love serif fonts.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines