@ -4,10 +4,6 @@
#include "terminal.h"
#include <boost/property_tree/json_parser.hpp>
Snippets::Snippets() {
load();
}
void Snippets::load() {
auto snippets_file = Config::get().home_juci_path / "snippets.json";
@ -6,8 +6,6 @@
#include <vector>
class Snippets {
Snippets();
public:
class Snippet {
@ -25,4 +23,4 @@ public:
std::vector<std::pair<std::regex, std::vector<Snippet>>> snippets;
void load();
};
@ -146,6 +146,7 @@ Window::Window() {
void Window::configure() {
Config::get().load();
Snippets::get().load();
auto screen = get_screen();
static Glib::RefPtr<Gtk::CssProvider> css_provider_theme;