summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 59460f2..7b82409 100644
--- a/src/command.c
+++ b/src/command.c
@@ -126,6 +126,7 @@ static CommandInfo cmd_list[] = {
{"shellcmd", NULL, command_shellcmd, {0}},
#ifdef FEATURE_QUEUE
{"queue-push", NULL, command_queue, {COMMAND_QUEUE_PUSH}},
+ {"queue-unshift", NULL, command_queue, {COMMAND_QUEUE_UNSHIFT}},
{"queue-pop", NULL, command_queue, {COMMAND_QUEUE_POP}},
{"queue-clear", NULL, command_queue, {COMMAND_QUEUE_CLEAR}},
#endif
@@ -916,6 +917,13 @@ gboolean command_queue(const Arg *arg)
}
break;
+ case COMMAND_QUEUE_UNSHIFT:
+ res = bookmark_queue_unshift(arg->s ? arg->s : GET_URI());
+ if (res) {
+ vb_echo(VB_MSG_NORMAL, false, "Pushed to queue");
+ }
+ break;
+
case COMMAND_QUEUE_POP:
if ((uri = bookmark_queue_pop(&count))) {
res = vb_load_uri(&(Arg){VB_TARGET_CURRENT, uri});