From 177eade2d2c09e8a9ef4c320a0f0426d2480e07b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 17 May 2021 19:28:51 +0200 Subject: Add ctrl+i to either open urls in browser or reverse image search. Also fix ctrl+c copy with missing title --- plugins/Info.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/Info.hpp (limited to 'plugins') diff --git a/plugins/Info.hpp b/plugins/Info.hpp new file mode 100644 index 0000000..d2d9db3 --- /dev/null +++ b/plugins/Info.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include "Page.hpp" + +namespace QuickMedia { + class InfoPage : public Page { + public: + InfoPage(Program *program) : Page(program) {} + const char* get_title() const override { return "Info"; } + PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; + + static std::shared_ptr add_url(const std::string &url); + static std::shared_ptr add_reverse_image_search(const std::string &image_url); + }; +} \ No newline at end of file -- cgit v1.2.3