Re: psql readline Tab insert tab

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: psql readline Tab insert tab
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B36615F6C@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на psql readline Tab insert tab  ("Hans Ginzel" <Hans@matfyz.cz>)
Ответы Re: psql readline Tab insert tab  ("Hans Ginzel" <Hans@matfyz.cz>)
Список pgsql-novice
Hans Ginzel wrote:
> how to make psql (readline) to insert tab when Tab is pressed? E.g. for
> pasting. I know, there is -n option. But then the history is not
> accessible.
> 
> I have tried
> $if psql
>   Control-I: "\t"
>   Control-A: complete
> $endif
> in my ~/.inputrc. But when I press Tab psql freezes until I press Ctrl+C.

Probably an endless loop.

It could be done by adding the following lines to your ~/.inputrc file:

$if Psql
TAB: tab-insert
$endif

Yours,
Laurenz Albe

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Hans Ginzel"
Дата:
Сообщение: psql readline Tab insert tab
Следующее
От: "lmanorders"
Дата:
Сообщение: DLL Problems