diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-17 19:28:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-17 19:28:51 +0200 |
commit | 177eade2d2c09e8a9ef4c320a0f0426d2480e07b (patch) | |
tree | d4c9220ce6016fe82dbe40009d944d0d4cda5bed /plugins | |
parent | 42de171702b8a52a01661a25db56dde44f3754d6 (diff) |
Add ctrl+i to either open urls in browser or reverse image search. Also fix ctrl+c copy with missing title
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Info.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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<Tab> &result_tabs) override; + + static std::shared_ptr<BodyItem> add_url(const std::string &url); + static std::shared_ptr<BodyItem> add_reverse_image_search(const std::string &image_url); + }; +}
\ No newline at end of file |