Re: [NOVICE] psql readline Tab insert tab

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, 'Hans Ginzel *EXTERN*' <hans(at)matfyz(dot)cz>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [NOVICE] psql readline Tab insert tab
Date: 2015-06-01 17:41:02
Message-ID: 556C992E.6010301@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

On 6/1/15 7:00 AM, Albe Laurenz wrote:
> 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.
>
>>> 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?
>
> Would that be worth an addition to the documentation?

There is already a section about this on the psql man page. (Look for
"disable-completion".)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2015-06-01 17:51:39 Re: pg_xlog -> pg_xjournal?
Previous Message Tom Lane 2015-06-01 16:56:20 Re: [CORE] postpone next week's release

Browse pgsql-novice by date

  From Date Subject
Next Message Wei Shan 2015-06-02 00:06:48 Conflict Management in Postgres hot standby
Previous Message Albe Laurenz 2015-06-01 11:00:09 Re: [NOVICE] psql readline Tab insert tab