From: Daniel Carl Date: Thu, 1 Aug 2013 16:22:49 +0000 (+0200) Subject: Renamed queue related commands. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=841e8fcab75509ef511d6501bf303a8037454277;p=vimb.git Renamed queue related commands. For later commands and possible more commands for the queue the commands are now prefixed with 'queue-'. --- diff --git a/doc/vimb.1 b/doc/vimb.1 index a4a00a7..f9733a7 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -239,7 +239,7 @@ Start hinting to open inputboxes or textareas with external editor. .BI "hint-save [" QUERY "]" Start hinting to download hinted links into configured download directory. .TP -.BI "hint-push [" QUERY "]" +.BI "hint-queue-push [" QUERY "]" Start hinting to push hinted URI into the read it later queue. If PROJECT hab been compiled with QUEUE feature. @@ -334,11 +334,11 @@ The queue allows to mark URLs for later reding (something like a read it later list). This list is shared between the single instances of PROJECT. Only available if PROJECT has been compiled with QUEUE feature. .TP -.BI "push [" URI ] +.BI "queue-push [" URI ] Push \fIURI\fP or if not given current URI into the queue. .TP -.B pop +.B queue-pop Open the oldest queue entry in current browser window and remove it from the queue. @@ -680,8 +680,8 @@ Holds the bookmarks saved with command `bookmark-add'. .RE .I $XDG_CONFIG_HOME/PROJECT/queue .RS -Holds the read it later queue filled by `hint-push' or `push' if PROJECT has -been compiled with QUEUE feature. +Holds the read it later queue filled by `hint-queue-push' or `queue-push' if +PROJECT has been compiled with QUEUE feature. .RE .I $XDG_CONFIG_HOME/PROJECT/scripts.js .RS diff --git a/src/command.c b/src/command.c index 4f7997e..be89c19 100644 --- a/src/command.c +++ b/src/command.c @@ -95,7 +95,7 @@ static CommandInfo cmd_list[] = { {"hint-editor", NULL, command_hints, {HINTS_TYPE_EDITABLE}}, {"hint-save", NULL, command_hints, {HINTS_TYPE_LINK | HINTS_PROCESS_SAVE}}, #ifdef FEATURE_QUEUE - {"hint-push", NULL, command_hints, {HINTS_TYPE_LINK | HINTS_PROCESS_PUSH}}, + {"hint-queue-push", NULL, command_hints, {HINTS_TYPE_LINK | HINTS_PROCESS_PUSH}}, #endif {"yank-uri", "yu", command_yank, {VB_CLIPBOARD_PRIMARY | VB_CLIPBOARD_SECONDARY | COMMAND_YANK_URI}}, {"yank-selection", "ys", command_yank, {VB_CLIPBOARD_PRIMARY | VB_CLIPBOARD_SECONDARY | COMMAND_YANK_SELECTION}}, @@ -125,8 +125,8 @@ static CommandInfo cmd_list[] = { {"save", NULL, command_save, {COMMAND_SAVE_CURRENT}}, {"shellcmd", NULL, command_shellcmd, {0}}, #ifdef FEATURE_QUEUE - {"push", NULL, command_queue, {COMMAND_QUEUE_PUSH}}, - {"pop", NULL, command_queue, {COMMAND_QUEUE_POP}}, + {"queue-push", NULL, command_queue, {COMMAND_QUEUE_PUSH}}, + {"queue-pop", NULL, command_queue, {COMMAND_QUEUE_POP}}, #endif }; diff --git a/src/default.h b/src/default.h index 0604b75..39b0edf 100644 --- a/src/default.h +++ b/src/default.h @@ -68,8 +68,8 @@ static char *default_config[] = { "nmap ;e=hint-editor", "nmap ;s=hint-save", #ifdef FEATURE_QUEUE - "nmap ;p=hint-push", - "nmap =pop", + "nmap ;p=hint-queue-push", + "nmap =queue-pop", #endif "nmap y=yank-uri", "nmap Y=yank-selection",