File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -743,7 +743,7 @@ class ChangedFilesModal extends FuzzySuggestModal<FileStatusResult> {
743
743
super ( plugin . app ) ;
744
744
this . plugin = plugin ;
745
745
this . changedFiles = changedFiles ;
746
- this . setPlaceholder ( "Only files in vault can be openend !" ) ;
746
+ this . setPlaceholder ( "Not supported files will be opened by default app !" ) ;
747
747
}
748
748
749
749
getItems ( ) : FileStatusResult [ ] {
@@ -766,7 +766,7 @@ class ChangedFilesModal extends FuzzySuggestModal<FileStatusResult> {
766
766
767
767
onChooseItem ( item : FileStatusResult , _ : MouseEvent | KeyboardEvent ) : void {
768
768
if ( this . plugin . app . metadataCache . getFirstLinkpathDest ( item . path , "" ) == null ) {
769
- new Notice ( "Can't open file in Obsidian" ) ;
769
+ ( this . app as any ) . openWithDefaultApp ( item . path ) ;
770
770
} else {
771
771
this . plugin . app . workspace . openLinkText ( item . path , "/" ) ;
772
772
}
You can’t perform that action at this time.
0 commit comments