@@ -36,7 +36,8 @@ pub use fav_dialog::FavDialog;
3636pub use image_panel:: ImagePanel ;
3737pub use macro_dialog:: MacroDialog ;
3838pub use note_panel:: {
39- build_nvim_command, build_wezterm_command, extract_links, show_wiki_link, NotePanel ,
39+ build_nvim_command, build_wezterm_command, extract_links, show_wiki_link, spawn_external,
40+ NotePanel ,
4041} ;
4142pub use notes_dialog:: NotesDialog ;
4243pub use screenshot_editor:: ScreenshotEditor ;
@@ -368,7 +369,6 @@ pub struct LauncherApp {
368369 pub note_save_on_close : bool ,
369370 pub note_always_overwrite : bool ,
370371 pub note_images_as_links : bool ,
371- pub note_external_editor : Option < String > ,
372372 pub note_external_open : NoteExternalOpen ,
373373 pub note_font_size : f32 ,
374374 pub note_more_limit : usize ,
@@ -514,7 +514,6 @@ impl LauncherApp {
514514 note_always_overwrite : Option < bool > ,
515515 note_images_as_links : Option < bool > ,
516516 note_more_limit : Option < usize > ,
517- note_external_editor : Option < String > ,
518517 ) {
519518 self . plugin_dirs = plugin_dirs;
520519 self . index_paths = index_paths;
@@ -609,9 +608,6 @@ impl LauncherApp {
609608 if let Some ( v) = note_more_limit {
610609 self . note_more_limit = v;
611610 }
612- if note_external_editor. is_some ( ) {
613- self . note_external_editor = note_external_editor;
614- }
615611 }
616612
617613 pub fn new (
@@ -872,7 +868,6 @@ impl LauncherApp {
872868 note_save_on_close : settings. note_save_on_close ,
873869 note_always_overwrite : settings. note_always_overwrite ,
874870 note_images_as_links : settings. note_images_as_links ,
875- note_external_editor : settings. note_external_editor . clone ( ) ,
876871 note_external_open,
877872 note_font_size : 16.0 ,
878873 note_more_limit : settings. note_more_limit ,
@@ -2901,10 +2896,7 @@ impl eframe::App for LauncherApp {
29012896 if self . open_note_in_neovim (
29022897 & slug,
29032898 crate :: plugins:: note:: load_notes,
2904- |path| {
2905- let ( mut cmd, _cmd_str) = build_nvim_command ( path) ;
2906- cmd. spawn ( ) . map ( |_| ( ) )
2907- } ,
2899+ |path| spawn_external ( path, NoteExternalOpen :: Wezterm ) ,
29082900 ) {
29092901 ui. close_menu ( ) ;
29102902 }
0 commit comments