I want to work on a MOC by using the search function and dragging notes that are relevant into the MOC. However I want only notes that are not already dragged into the MOC to show up. Is there a way to search so that no notes appear that are linked to from a certain note?
That’s true. Perhaps its something that others might find useful too.
However I actually don’t know how to search the plugins in a way where I would
find the one who did exactly this if there is one. Any advice on that?
How do you consider a page to be relevant for a MOC (when its not linked into the MOC), are you talking about every page not linking to that particular MOC?
Or are you talking about any page not linking to any of your MOC pages? (Which renders the questions of how are your MOC pages organised/tagged, and wouldn’t we still be talking about a lot of pages, so how do you foresee limiting down “all-the-other-pages” to only those relevant? )
I think they just want all pages that fulfil the search that is not linked by the current note (the MoC). This may sometimes be an unmanageable number of pages but it might not, they could have few pages in general or could just use a more specific if there’s too many results.
Pretty niche but a simple toggle to exclude results from pages that link to current note would be neat for me as well. Sometimes I search a term and realise it is being used in two completely unrelated contexts with two different meanings and with this I could quickly find those notes if I wanted to remove that term to reduce confusion. I’ve ended up doing this a few times and this could make it easier so I would appreciate this.
Exactly. I want to be able to search for notes using all the functionality that already excists, and then after that just add this part which excludes search results that I have already found and added to the MOC
I don’t know if this has been mentioned already, but if you’re using wiki links, wouldn’t doing -content: "[[MOC" eliminate search results already linking to your MOC? (Possibly you could use just -"[[MOC", and/or need to escape the square brackets)
In essence what you’re searching for are pages without a link to the MOC in question, so then eliminate the link text from the search. Or am I missing something basic again?
Holroy’s got it.
So if the file name starts with MOC, -/[[MOC.*?]]/ should work.
I just checked on a file of mine and the first 3-4 files I checked on the list of my backlinks did not appear among the search results. So it’s good.
I’m slightly suprised that a few of my last searches when using the /<searchterm>/ format went through without having to escape the square brackets… Since when has this been supported?
Anyway, if the user has issues, try this: -/\[\[MOC.*?\]\]/
I’m really off my game lately, and my idea does go the other way around removing those files linking to the MOC, not those linking from the MOC. I’ll now go to the corner, stand quiet and rust for a while.