mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
basic executor / command mechanism
This commit is contained in:
@@ -616,4 +616,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
treeCacheReloadedListener() {
|
||||
this.reloadTreeFromCache();
|
||||
}
|
||||
|
||||
async moveNotesToCommand() {
|
||||
const selectedOrActiveBranchIds = this.getSelectedOrActiveNodes().map(node => node.data.branchId);
|
||||
|
||||
this.triggerCommand('moveBranchIdsTo', {branchIds: selectedOrActiveBranchIds});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user