diff --git a/src/menu.cc b/src/menu.cc index ac6a464..def47c8 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -61,6 +61,12 @@ Menu::Menu() { app.open_folder +
+ + _Reload _File + app.reload_file + +
_Save diff --git a/src/window.cc b/src/window.cc index 521687e..bca6214 100644 --- a/src/window.cc +++ b/src/window.cc @@ -319,6 +319,13 @@ void Window::set_menu_actions() { Directories::get().open(path); }); + menu.add_action("reload_file", [this]() { + auto path = Notebook::get().get_current_view()->file_path; + std::cout<<"Path: "<