~skiqqy/q

5dcf1dcccaf55eb94c2fbfee96ac696dc4414c75 — Stephen Cochrane 2 years ago 9c12d04
Syntax
1 files changed, 5 insertions(+), 5 deletions(-)

M q
M q => q +5 -5
@@ 4,12 4,12 @@
declare -A commands

# Commands the user can run, and its help info
commands[pop]="pop [n|all]\nPop nth (defaults to 1) item from the queue."
commands[push]="push [n]\nPush into the queue with priority n (defaults to highest)."
commands[peek]="peek [n|all]\nLook at the first n (defaults to 1) items from the queue."
commands[pop]="pop [n|all]\nPop nth (defaults to 1) item from the stack."
commands[push]="push [n]\nPush into the stack with priority n (defaults to highest)."
commands[peek]="peek [n|all]\nLook at the first n (defaults to 1) items from the stack."
commands[grep]="grep PATTERN\nSearch for notes matching PATTERN."
commands[dmenu]="dmenu\nView the stack in dmenu, to exit hit esc twice"
commands[clean]="clean\nReset the queue and ID's."
commands[clean]="clean\nReset the stack and ID's."
commands[ed]="ed id\nEdit the note at id."
commands[help]="q help\nShows helpful information."
commands[list]="list\nShows all available commands."


@@ 219,7 219,7 @@ parse()
	desc=$(echo "$1" | cut -d: -f4)
}

# Print an item from the queue nicely
# Print an item from the stack nicely
unpack()
{
	parse "$1"