Page 1 of 1
Reverse search
Posted: Wed Jul 26, 2017 9:52 am
by erihanse
How do I do a reverse search? Pressing CTRL-R doesn't bring up the reverse-i-search prompt, it only cycles through the previous commands.
Re: Reverse search
Posted: Thu Jul 27, 2017 1:32 pm
by JimKnicely
Are you talking about in vsql?
vsql supports the tecla library for convenient line editing and retrieval.
See:
https://my.vertica.com/docs/8.1.x/HTML/ ... diting.htm
http://www.astro.caltech.edu/~mcs/tecla/tecla.html
Sounds like you are looking for the "history-search-backward" key binding.
By default you can search backwards in the command history by typing in a keyword that you want to search for at the vsql prompt, then hit <esc> followed by <p>.