Hi all,
With some recent threads about immediate availability of layers list, column
names and so on, I recalled the possibilities of customised tab-completion in
bash.
Here is a first try at having useful tab-completion for grass. The goal is to
have mapname, layername, filename, columname completion and so on. For now,
just becoming acquainted with readline within bash, I have the following:
- tab-completion for commands works as always
- after a command, you have tab-completion for options and flags
- within options, you have tab-completion for fixed value sets
I also played along but still didn't integrate layername and database
columnname completion.
Please give this a try and comment on it. I'd like to know whether it might be
useful enough to complete (sic) it.
To enable the current features, source this file from bash, e.g. '. filename'.
If your shell isn't a current enough version of bash, the script will do nothing.
More to follow, but "release early" as the saying goes.
Oh, and so many thanks to whomever came up with --interface-description in
parser.c
Good night.
-- Daniel Calvelo Aros
(attachments)
grass_rlcompleter-v0.sh (2.68 KB)