-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image links show up in file.outlinks
#449
Comments
The If you want to filter, you probably want the
|
Thank you for your reply. Yes, I might want this. To be specified, I just want to control the content of table. Like I said before, in order to realize the connection of each file, I would love to do it with the help of dv. However, if all the files are connected to the MOC, and the filter might filter everything, then I won't see anything from the table. So I just need to let the MOC don't show up in file.inlink column. Furthermore, when I insert a picture in the file, the name of the png will show up in the outlink column too. To focus on the link between points, I also want to exclude this kind of information. Thank you for your hard work! |
I'm not fully understanding what you are looking for. The brief example I gave will, for each file, list all of it's incoming links except a specific MOC. Is it not giving the output you want? Image links showing up in |
Emm, sorry to bother you. I did copy the code to my ob, and changed the content of [[Link to MOC]] to the name of my MOC. Still the MOC will appear in my file.inlink column. Did I use it in the wrong way? Thank you for your patience. |
Can you share the exact query you are using? I was able to filter out the MOC when I tried doing this locally, so it may be a difference in our queries. |
You have |
For context, TABLE filter(file.inlinks, (l) => l != [[Link]]), file.inlinks Will only filter the first column, not the second one. |
Thank you, now I see the way of using it. According to your guide, I rewrite it below, put the file.inlinks column to the fourth.
Then it comes back to me with error.
Could you please help with this error? Much appreciate it! |
This is a little advanced, which is why it may be confusing - the error is in the
|
Thank you, now I correct my dataview code and it works! I noticed dataview was updated to 0.4.8, yet the name of the png still show up in the outlink column. I am looking forward to seeing it fixed. Again, thank you for your amazing work! |
file.outlinks
I'd love if we get This quirk bit me in the butt today when I tried to do an |
Hello, The file.outlinks is still showing links to attached documents (images, email...) and not only between .md files, is it still planned to correct it ? Or is there a new outlinks metadata to exclude it ? Thanks ! |
Hi! It seems they're still there (or maybe again?). I tried to filter them out using
That didn't work either. Any idea welcome. |
Hey! I got i working with Hope that helps! |
How to write I tried:
shows error: And I can't see a documentation on filter in dataviewjs... where can I find that? |
|
Thank you @AB1908! that worked! Hey, btw, is there a documentation for these codes? Like, where did you find the |
That's just regular javascript. Use MDN. Also, toying around in the developer console is supremely helpful. |
sorry guys, i'm pretty new to all the languages that are used in Obsidian. How do i use this snippet? this is my Querry so far:
"WHERE !contains(file.outlink, ".png")" does not work atm. |
I'm a little confused, how is showing links to images in queries a bug? If I linked to an image, it should show up in links. Did you mean embedded images are showing up as links? |
Is your feature request related to a problem? Please describe.
I would use without grammar in any other columns, but the only way I found to use the without method was for ID. For example, I am writing notes with the help of obsidian and dataview. During this process, when I am writing notes, also using dataview to generate my MOC table, so I will take file.inlink and outlink into consideration. While I try to do that, I notice that the MOC appears in each file.inlink rows, so I want to exclude it.
Describe the solution you'd like
Provide the without grammar support for it, then I can append it in my dataview code.
Describe alternatives you've considered
Provide the filter which allows people freely filter the elements they don't want.
Additional context
The text was updated successfully, but these errors were encountered: