Reverse search
Moderator: NorbertKrupa
Reverse search
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.
- JimKnicely
- Site Admin
- Posts: 1825
- Joined: Sat Jan 21, 2012 4:58 am
- Contact:
Re: Reverse search
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>.
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>.
Jim Knicely
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.