Re: psql readline Tab insert tab - Mailing list pgsql-novice

From Hans Ginzel
Subject Re: psql readline Tab insert tab
Date
Msg-id 7ba113a734426290ff9edf232bbbe83c.squirrel@artax.karlin.mff.cuni.cz
Whole thread Raw
In response to Re: psql readline Tab insert tab  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Responses Re: psql readline Tab insert tab  (Hans Ginzel <hans@matfyz.cz>)
List 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

Great! Thank you very much. Could this be added as note to the -n option
of the page http://www.postgresql.org/docs/current/static/app-psql.html,
please?

Regards
Hans



pgsql-novice by date:

Previous
From: Shashwat Arghode
Date:
Subject: Re: [SQL] Drop or disable or bypass "_return" rule on select on a view.
Next
From: Hans Ginzel
Date:
Subject: Re: psql readline Tab insert tab