You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
440 B

#pragma once
#include <gdk/gdk.h>
#include <regex>
#include <string>
#include <vector>
class Snippets {
public:
class Snippet {
public:
std::string prefix;
guint key;
GdkModifierType modifier;
std::string body;
std::string description;
};
static Snippets &get() {
static Snippets singleton;
return singleton;
}
std::vector<std::pair<std::regex, std::vector<Snippet>>> snippets;
void load();
};