This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
docs/Release Notes/Release Notes
src/public/app/components Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1616* [ Return correct HTTP status code on failed login attempts instead of 200] ( https://github.com/TriliumNext/Notes/issues/1707 ) by @pano9000
1717* [ Calendar stops displaying notes after adding a Day Note] ( https://github.com/TriliumNext/Notes/issues/1705 )
1818* Full anonymization not redacting attachment titles.
19+ * Unable to trigger "Move to" dialog via keyboard shortcut.
1920
2021## ✨ Improvements
2122
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ export interface ContextMenuCommandData extends CommandData {
5353 node : Fancytree . FancytreeNode ;
5454 notePath ?: string ;
5555 noteId ?: string ;
56- selectedOrActiveBranchIds ?: any ; // TODO: Remove any once type is defined
57- selectedOrActiveNoteIds : any ; // TODO: Remove any once type is defined
56+ selectedOrActiveBranchIds : string [ ] ;
57+ selectedOrActiveNoteIds ?: string [ ] ;
5858}
5959
6060export interface NoteCommandData extends CommandData {
Original file line number Diff line number Diff line change @@ -18,10 +18,26 @@ export default class MainTreeExecutors extends Component {
1818 }
1919
2020 async cloneNotesToCommand ( { selectedOrActiveNoteIds } : EventData < "cloneNotesTo" > ) {
21+ if ( ! selectedOrActiveNoteIds && this . tree ) {
22+ selectedOrActiveNoteIds = this . tree . getSelectedOrActiveNodes ( ) . map ( ( node ) => node . data . noteId ) ;
23+ }
24+
25+ if ( ! selectedOrActiveNoteIds ) {
26+ return ;
27+ }
28+
2129 this . triggerCommand ( "cloneNoteIdsTo" , { noteIds : selectedOrActiveNoteIds } ) ;
2230 }
2331
2432 async moveNotesToCommand ( { selectedOrActiveBranchIds } : EventData < "moveNotesTo" > ) {
33+ if ( ! selectedOrActiveBranchIds && this . tree ) {
34+ selectedOrActiveBranchIds = this . tree . getSelectedOrActiveNodes ( ) . map ( ( node ) => node . data . branchId ) ;
35+ }
36+
37+ if ( ! selectedOrActiveBranchIds ) {
38+ return ;
39+ }
40+
2541 this . triggerCommand ( "moveBranchIdsTo" , { branchIds : selectedOrActiveBranchIds } ) ;
2642 }
2743
You can’t perform that action at this time.
0 commit comments