Обсуждение: Ctrl + K - add some productivity :)

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

Ctrl + K - add some productivity :)

От
Nail Samatov
Дата:
Hello,

I find this patch make more convenient (un)commenting lines in sql
editor and I think such behavior is much more like other IDE's.

1. When press Ctrl + K on a selected text: If a selected text ends
with '\n' then a comment after it is not added.
2. If there is no selection: comment a several lines by pressing Ctrl
+ K repeatedly.

Can you apply it to official release?
(1) fixes some unintuitive behavior
With (2) you can quickly (un)comment several lines (no need to select
a line with mouse or keyboard etc - just press Ctrl + K)

--
Best regards,
Nail Samatov

Вложения

Re: Ctrl + K - add some productivity :)

От
Dave Page
Дата:
On Mon, Nov 22, 2010 at 5:21 PM, Nail Samatov
<nail.samatov@googlemail.com> wrote:
> Hello,
>
> I find this patch make more convenient (un)commenting lines in sql
> editor and I think such behavior is much more like other IDE's.
>
> 1. When press Ctrl + K on a selected text: If a selected text ends
> with '\n' then a comment after it is not added.
> 2. If there is no selection: comment a several lines by pressing Ctrl
> + K repeatedly.
>
> Can you apply it to official release?
> (1) fixes some unintuitive behavior
> With (2) you can quickly (un)comment several lines (no need to select
> a line with mouse or keyboard etc - just press Ctrl + K)

Thanks, applied to trunk and 1.12 (because of the unintuitive behaviour).

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company