summaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2012-12-24 00:50:01 +0100
committerDaniel Carl <danielcarl@gmx.de>2012-12-24 02:53:00 +0100
commit3e8abe7ee081dcb9e06bf0eb3ab2526b6a70621c (patch)
treee947331410e7dede636b20da8fdd604f2e2f0514 /src/command.h
parentb8bc5c84dc6a365c4f30eef63924664001d577a2 (diff)
Added command to yank current url or selected text to clipboard.
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command.h b/src/command.h
index ebefee2..3a6fa10 100644
--- a/src/command.h
+++ b/src/command.h
@@ -20,6 +20,13 @@
#ifndef COMMAND_H
#define COMMAND_H
+enum {
+ COMMAND_YANK_PRIMARY = VP_CLIPBOARD_PRIMARY,
+ COMMAND_YANK_SECONDARY = VP_CLIPBOARD_SECONDARY,
+ COMMAND_YANK_URI = (COMMAND_YANK_SECONDARY<<1),
+ COMMAND_YANK_SELECTION = (COMMAND_YANK_SECONDARY<<2)
+};
+
typedef gboolean (*Command)(const Arg* arg);
typedef struct {
@@ -48,5 +55,6 @@ gboolean command_complete(const Arg* arg);
gboolean command_inspect(const Arg* arg);
gboolean command_hints(const Arg* arg);
gboolean command_hints_focus(const Arg* arg);
+gboolean command_yank(const Arg* arg);
#endif /* end of include guard: COMMAND_H */