mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-28 21:09:52 +00:00
Add method mainWindow.jumpToTag (#2584)
This commit is contained in:
parent
913b684fb3
commit
4e7b370970
5 changed files with 42 additions and 0 deletions
|
@ -23,6 +23,8 @@ QtObject {
|
|||
script.registerCustomAction("transformTextRot13", "Transform selected text with rot13", "rot13", "text-wrap", true);
|
||||
|
||||
script.registerCustomAction("noteSubFolder", "Show active note subfolder information", "Subfolder");
|
||||
|
||||
script.registerCustomAction("setActiveTag", "Set active tag", "Active tag");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -83,6 +85,12 @@ QtObject {
|
|||
script.log(subFolder.fullPath());
|
||||
script.log(subFolder.relativePath());
|
||||
break;
|
||||
|
||||
// jump to the tag "test" in the tag tree
|
||||
case "setActiveTag":
|
||||
var tag = script.getTagByNameBreadcrumbList(["test"]);
|
||||
mainWindow.jumpToTag(tag.id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue