A tiny launcher menu packing a big bang (syntax)
Interrobang - A tiny launcher menu packing a big bang syntax
Author: Jesse McClure, Copyright 2013 License: GPLv3
interrobang [-h] [-v] [-o config-string] [-] [hushbang]
Interrobang is a scriptable launcher menu with a customizable shortcut syntax and completion options.
Runtime configuration is read from the following files, in order, stopping at the first file found: stdin if - is specified on the command line,
A template configuration file is distributed as
Each non-empty non-comment line in a configuration file must start with set, bang, or tab. Lines starting with a
#are ignored as comments.
set parameter = setting
The following parameters can be set:
bang keyword = command-string
Bangs - inspired by the duckduckgo search engine - are customizable commands which allow the user to extend interrobang's functionality in creative ways. If the first character entered in interrobang matches the bangchar (! by default), the word immediately following the bangchar is read as the bang. This bang is looked up in the configuration, and the remainder of the entry takes the place of the
%sin the command-string.
See the default configuration for examples of how bangs can be customized.
tab keyword = command-string
For each defined bang, there can be a separate tab-completion mechanism. Various examples can be found in the default configuration file. The special keyword "default" is used for tab-completion for regular entries. Two default options are provided for either bash's built in completion with compgen, or with the percontation tool which is distributed with interrobang.
command-string must be a format string with two
%sentries. The first
%swith all but the last "word" in the current entry, while the second will contain this last (potentially partial) "word". This allows for completion on the entire line, or based just on the word being typed.
See the default configuration for examples of how tab completion can be customized.
Copyright ©2013 Jesse McClure
License GPLv3: GNU GPL version 3: http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Submit bug reports via github: http://github.com/TrilbyWhite/interrobang.git
I would like your feedback. If you enjoy Interrobang see the bottom of the site below for details on submitting comments: http://mccluresk9.com/software.html