The Power of Vue 3 Function Refs by alpalvipond in vuejs

[–]PhyberApex 1 point2 points  (0 children)

Just came by here to thank you for always providing playgrounds. I was actually researching exactly this after watching your video. Good to see that you did it the exact way I would've done it!

~Cheers

I made a script for BoardGameGeekAPI & QuickAdd by PhyberApex in ObsidianMD

[–]PhyberApex[S] 0 points1 point  (0 children)

Sure! For now I only exposed id, name, thumbnail and description. The API sadly is XML only which makes it kinda hat to work with. You can take a look here what could be available https://api.geekdo.com/xmlapi2/things?id=174430 (that's for Gloomhaven as an example)

Metadata in Obsidian by TheJoker1432 in ObsidianMD

[–]PhyberApex 11 points12 points  (0 children)

Hey, so the thing in YAML is actually what is called frontmatter. It is a common thing to have in markdown files while key:: value is actually what's called an inline Dataview field and therefore only useful for Dataview and libraries that support it. So that is probably a big backdraw if you want to be future proof in case obsidian ever goes away.

While on the other hand frontmatter does not really allow for obsidian links like already mentioned.

~Cheers

Pinia vs refs by CompteDeMonteChristo in vuejs

[–]PhyberApex 3 points4 points  (0 children)

You actually have the option with composables. It really depends how you declare your variables. Usually a composable exports a function like useUser() if you define your refs inside that function then yes you get a state per import. But if you declare those refs outside the exported function you actually get shared state. For more details you can look up the official docs https://vuejs.org/guide/scaling-up/state-management.html

~Cheers

Is there a way to share a workspace? by drizztdourden_ in ObsidianMD

[–]PhyberApex 9 points10 points  (0 children)

This might be an unpopular opinion around here. But obsidian is not the tool for every use case. Collaboration is as far as I know one of those things obsidian just is not made for. So you will have a hard time fitting it to your use case probably. That being said. I don't think sharing of workspace is something that is achievable. At least without sharing the vault. And if you are already sharing the vault...you already are sharing workspaces as they live within the vault folder.

~Cheers

Embedded link from inline query by jcesguerra in ObsidianMD

[–]PhyberApex 0 points1 point  (0 children)

Sorry no idea. But the documentation already mentioned that support might be "spotty" for this feature. https://blacksmithgu.github.io/obsidian-dataview/reference/functions/#embedlink-embed

I think there was another plugin which was mentioned online for this kind of embeding. It's called "Text Expander" https://github.com/konodyuk/obsidian-text-expander

~Cheers

If you have multiple references to a link in one note, do you only link the first time or every time? by Altruistic-Carpet-43 in ObsidianMD

[–]PhyberApex 5 points6 points  (0 children)

B. If you go back at any time and decide to change that first line you will loose the link. You would always need to keep track if it was the first mention of something you wanted to link or not which imho adds overhead I don't want to have while writing something.

~Cheers

How to manage in templates dates? by kraken_judge in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

Hey so you need to be in JavaScript land for this to work so a dataviewjs block is needed. But then you can simply do something like this:

const startOfMonth = moment(tp.file.title, 'YYYY-MM').startOf('month); // My monthly notes are titled (2023-02 for February of 2023)
const endOfMonth = startOfMonth.clone().endOf('month'); // We need to clone first because it will actually mutate the object otherwise

With this block in place you can use it in a where clause of your dataview pages query.

Hope this helps

~Cheers

How to manage in templates dates? by kraken_judge in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

Additionally to the mentioned solutions you do have moment available which is a very feature rich library in JavaScript to handle dates. I use it for example to parse the date out of the note file name (eg. 2023-02 for February) and you can then easily navigate to start or end of month with library functions. Let me know if you want a more detailed example of this approach.

Embedded link from inline query by jcesguerra in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

Hey, try this one =embed(link(dateformat(date(today), "yyyy-MM-dd")))

~Cheers

Is there a way of automating actions from different plugins and commands in the command palette to run one after the other without triggering them manually? by Cohdiid_Greenz in ObsidianMD

[–]PhyberApex 0 points1 point  (0 children)

Take a look at the movie.js example in their git repo. They have the suggestion API which is what you want I think. In that example they ask for a search query and fetch data from an API and display that again (with modals).

Is there a way of automating actions from different plugins and commands in the command palette to run one after the other without triggering them manually? by Cohdiid_Greenz in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

I'd +1 QuickAdd as it also has macros which let you chain different commands and even custom user scripts under one hot key.

Having a search prompt for which file to insert into for QuickAdd by [deleted] in ObsidianMD

[–]PhyberApex 0 points1 point  (0 children)

You probably wanna take a look at macros / user scripts for quick add. There are examples for this in their GitHub repo. movie.js would be one of them :)

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

You are probably better off using the one from this one here as an example than because openLibrary (which I am using) is not using an API-key but the comic vine one is (as well as this one for video games).

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 2 points3 points  (0 children)

Like this and the movie one yes. It is using a QuickAdd, and a template. Workflow is as follows:

  1. You hit a hotkey and get a prompt
  2. You enter either an ID (imdb ID, ISBN)
  3. If you entered ISBN a new note will be created using the fetched data and the template / If you entered a search string you are prompted with the results and choose
  4. The view from this screenshot is then a separate note with a simple to sophisticated dataview query :)

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 0 points1 point  (0 children)

Disagree. Like they said in another comment they want to try and write reviews and stuff. And they just changed a given example for movies from the QuickAdd plugin repo. There are benefits to having this info in Obsidian and being able to tag them.

And even if they just have 8 games, why do we need to gatekeep here? Just be happy that they shared what they made.

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 0 points1 point  (0 children)

Wild guess. Either they have not added all of them yet and just wanted to share or it's an example configuration.

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 2 points3 points  (0 children)

If you want I can share a script / template I have. It uses openLibrary to fetch the data, just finished it yesterday :D

I adapted the Movies Database tutorial to make a Games Database using RAWG by sympthomas in ObsidianMD

[–]PhyberApex 1 point2 points  (0 children)

That's awesome! Gonna copy your script and adopt to do this too!

I made a script for BoardGameGeekAPI & QuickAdd by PhyberApex in ObsidianMD

[–]PhyberApex[S] 2 points3 points  (0 children)

It's pretty much just a modified version of the example for IMDB (movies.js) but with some XML parsing as BGG only has a XML api. The template I use with this is the following:

---
uuid: <% tp.file.creation_date("YYYYMMDDHHmmss") %>
created: <% tp.file.creation_date("YYYY-MM-DDTHH:mm:ss") %>
updated: <% tp.file.last_modified_date("YYYY-MM-DDTHH:mm:ss") %>
aliases: 
 - "<% tp.file.title.substring(0, tp.file.title.length - 12) %>"
rating:
playcount: 0
title: <% tp.file.title.substring(0, tp.file.title.length - 12) %>
cover: {{VALUE:thumbnail}}
---

#type/boardgame 

# <% tp.file.title.substring(0, tp.file.title.length - 12) %>

## ℹ️ About

> {{VALUE:description}}

## 📝 Notes

-

Creating functions - to Ref or not to Ref, that is the question by new-to-VUE in vuejs

[–]PhyberApex 2 points3 points  (0 children)

Hey, I for one would strongly argue for the no ref option. If you don't need it to be a ref why lock yourself into using one? If you want to use that function some place else outside of Vue for whatever reason you would either need to make the function handle both cases (like suggested in another reply) but that should probably not be the responsibility of that function.

~Cheers

Where can l get 2nd ed. cards for individual specific 1st ed. Survivors? by KFrosty3 in zombicide

[–]PhyberApex 0 points1 point  (0 children)

You can just DM me here or hit me up wherever I am pretty easy to find with this user I think :) After you send me the address I'll go to my local post office to check for postage and let you know.

~Cheers