Skip to content
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

Dynamic Code block smart-connections not working #592

Open
aikruger opened this issue May 8, 2024 · 3 comments
Open

Dynamic Code block smart-connections not working #592

aikruger opened this issue May 8, 2024 · 3 comments

Comments

@aikruger
Copy link

aikruger commented May 8, 2024

The dynamic code block ```smart-connections .... does not seem to be working anymore with the latest release 2.1.59
This is really important functionality and would greatly appreciate a fix

@aikruger aikruger changed the title Dynamic Code block smart-connection not working Dynamic Code block smart-connections not working May 8, 2024
@brianpetro
Copy link
Owner

Hey @aikruger

I just tried the ```smart-connections code-block, and it seems to work for me. So, I'll need your help to figure out what's going on.

Can you send me a screenshot if there are any errors in the developer console?

🌴

@aikruger
Copy link
Author

Hi @brianpetro it is working again. The only thing different has been an obsidian update on opening up obsidian again, maybe it is connected? Let me take the opportunity to say what a brilliant plug in you have created it has completely transformed the way I am able to use notes. One little hack I have is very useful and allows me to do very effective semantic searches for documents :
Search::

// DataviewJS script to embed a query with the current search term
const searchterm = dv.current().Search;

// Check if the search term is empty and return no text if true
if (searchterm) {
    dv.paragraph(`\`\`\`smart-connections \n${searchterm}\n\`\`\``);
}

@brianpetro
Copy link
Owner

@aikruger that's really clever! I haven't seen anything like that before. Thanks for sharing and thanks for the kind words 😊🌴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants