Re: [HACKERS] psql patch: tab-complete :variables also at buffer start

2011-02-11 Thread Robert Haas
On Thu, Feb 10, 2011 at 8:13 AM, Itagaki Takahiro wrote: > On Thu, Feb 10, 2011 at 19:37, Christoph Berg wrote: >> Currently, tab-completing :variable names in psql does not work at the >> beginning of the line. Fix this by moving the code block before the >> "empty buffer" case. > > Seems reason

Re: [HACKERS] psql patch: tab-complete :variables also at buffer start

2011-02-10 Thread Itagaki Takahiro
On Thu, Feb 10, 2011 at 19:37, Christoph Berg wrote: > Currently, tab-completing :variable names in psql does not work at the > beginning of the line. Fix this by moving the code block before the > "empty buffer" case. Seems reasonable to me. -- Itagaki Takahiro -- Sent via pgsql-hackers mail

[HACKERS] psql patch: tab-complete :variables also at buffer start

2011-02-10 Thread Christoph Berg
Currently, tab-completing :variable names in psql does not work at the beginning of the line. Fix this by moving the code block before the "empty buffer" case. (I have several "sql macros" in my .psqlrc like :relsize that prints table sizes in a nicely formatted way, being able to type : would be