You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text2link/info.json
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,8 @@
2
2
"name": "Text2link",
3
3
"identifier": "text2link",
4
4
"script": "text2link.qml",
5
-
"authors": [
6
-
"@Glin76"
7
-
],
8
-
"platforms": [
9
-
"linux",
10
-
"macos",
11
-
"windows"
12
-
],
5
+
"authors": ["@Glin76"],
6
+
"platforms": ["linux", "macos", "windows"],
13
7
"version": "0.0.1",
14
8
"minAppVersion": "25.05.3",
15
9
"description": "This script creates links to all notes containing the selected text at the end of the current note. Caution ! This script doesn't work with note-subfolders."
Copy file name to clipboardExpand all lines: text2link/text2link.qml
+38-34Lines changed: 38 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -4,43 +4,47 @@ import QtQml 2.0
4
4
* This script creates links to all notes containing the selected text at the end of the current note. Caution ! This script doesn't work with note-subfolders.
5
5
*/
6
6
QtObject {
7
-
8
-
functioninit() {
9
-
// create the menu entry
10
-
script.registerCustomAction("Text2link", "Create links for all notes containing selected text", "Text 2 link", "bookmark-new", true, false, true);
11
-
}
12
-
13
7
functioncustomActionInvoked(identifier) {
14
8
switch (identifier) {
15
-
case"Text2link":
16
-
17
-
var text =script.noteTextEditSelectedText();
18
-
if (text =="") {break;}
19
-
var foundedNotes =-1; // Current note will not be counted
0 commit comments