Re: [NOVICE] psql readline Tab insert tab

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Peter Eisentraut *EXTERN*'" <peter_e(at)gmx(dot)net>, '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-02 07:00:05
Message-ID: A737B7A37273E048B164557ADEF4A58B366192C4@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

Peter Eisentraut wrote:
> 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".)

Right, I didn't notice that.

Yours,
Laurenz Albe

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Jacobson 2015-06-02 07:06:09 Re: pg_xlog -> pg_xjournal?
Previous Message Guillaume Lelarge 2015-06-02 06:51:51 Re: pg_xlog -> pg_xjournal?

Browse pgsql-novice by date

  From Date Subject
Next Message lmanorders 2015-06-02 17:42:13 Re: DLL Problems
Previous Message Wei Shan 2015-06-02 00:06:48 Conflict Management in Postgres hot standby