Обсуждение: A few suggestion to the function editing window

Поиск
Список
Период
Сортировка

A few suggestion to the function editing window

От
Vitaly Belman
Дата:
From simple to complex:

1) Smart tabs: It is a standard in most editing programs. If user TABs
and then presses enter, the cursor should keep the tab position.

2) Upper case for keywords: How about UPPERCASING the keywords of SQL/plpgsql?

3) A bit complex but sure would come handy. I wish there an option to
quickly format SQLs from inside the pgAdmin. It isn't too complicated
to do, but would save me a lot of time.

-- ICQ: 1912453AIM: VitalyB1984MSN: tmdagent@hotmail.comYahoo!: VitalyBe


Re: A few suggestion to the function editing window

От
Andreas Pflug
Дата:
Vitaly Belman wrote:
>>From simple to complex:
> 
> 1) Smart tabs: It is a standard in most editing programs. If user TABs
> and then presses enter, the cursor should keep the tab position.

Do you know a scintilla style for that? Implementing that ourselves 
would probably lead to a disaster, because we'd interfere with 
scintilla's own enter handling.

> 2) Upper case for keywords: How about UPPERCASING the keywords of SQL/plpgsql?

Nope. We won't change the user's input. Different users like it 
different, esp. pgsql users are traditionally lowercase friendly. We're 
doing syntax highlighting for that.


> 3) A bit complex but sure would come handy. I wish there an option to
> quickly format SQLs from inside the pgAdmin. It isn't too complicated
> to do, but would save me a lot of time.

Ahem no, not really complicated. Just needs a parser...

Regards,
Andreas