Skip to content

Conversation

@Glin76
Copy link
Contributor

@Glin76 Glin76 commented Jun 14, 2025

Hello,

I have tried to make the script as discussed in issue pbek/QOwnNotes#3291

It sure need testing but for "standard" links created by QownNotes it seems to work fine.

Let me know if some bugs need to be fixed

"platforms": ["linux", "macos", "windows"],
"version": "0.0.2",
"minAppVersion": "25.6.1",
"description": "This script creates a menu item and a button that search in all notes and remove links to note (MD file) no longer existing (aka dead note-link)."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the description (that has a lot of grammar errors in my opinion 😅) I'm not sure if dead links in all notes are removed or just the current note.

Copy link
Contributor Author

@Glin76 Glin76 Jun 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

English is not my native language, I am sorry for the poor grammar. I will try to improve it (and/or use a free grammar checker).

But regarding your question I've wrote "in all notes"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

This script creates a menu item and a button that searches through all notes and removes links to all notes (Markdown files) that no longer exist, also known as dead note links.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed much clearer, thanks !!
Done

"script": "removedeadnotelink.qml",
"authors": ["@Glin76"],
"platforms": ["linux", "macos", "windows"],
"version": "0.0.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't start with version 0.0.2 if it's the initial release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pbek pbek merged commit 70bfbb6 into qownnotes:master Jun 14, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants