Re: psql readline Tab insert tab

From: "Hans Ginzel" <Hans(at)matfyz(dot)cz>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "'Hans Ginzel *EXTERN*'" <hans(at)matfyz(dot)cz>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: psql readline Tab insert tab
Date: 2015-05-29 11:18:02
Message-ID: 7ba113a734426290ff9edf232bbbe83c.squirrel@artax.karlin.mff.cuni.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2015-05-29 11:20:30 Re: fsync-pgdata-on-recovery tries to write to more files than previously
Previous Message Thomas Munro 2015-05-29 10:43:58 Re: [HACKERS] Re: 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

Browse pgsql-novice by date

  From Date Subject
Next Message Hans Ginzel 2015-05-29 11:57:33 Re: psql readline Tab insert tab
Previous Message Albe Laurenz 2015-05-29 08:16:57 Re: DLL Problems