From a1a0d9270f021b384eebb950908483b12f01ce48 Mon Sep 17 00:00:00 2001 From: d3rrial Date: Fri, 9 Sep 2016 11:30:38 +0200 Subject: [PATCH] added rudimentary file_reload to menu --- src/menu.cc | 6 ++++++ src/window.cc | 7 +++++++ 2 files changed, 13 insertions(+) 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: "<