Re: Ctrl + K - add some productivity :) - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Ctrl + K - add some productivity :)
Date
Msg-id AANLkTinhCj6Tjj6gvnn6KQmWCwJ3KnzMkwZLeUnxp1MX@mail.gmail.com
Whole thread Raw
In response to Ctrl + K - add some productivity :)  (Nail Samatov <nail.samatov@googlemail.com>)
List pgadmin-hackers
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

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin III commit: Improve the commenting logic in the SQL text box, t
Next
From: Guillaume Lelarge
Date:
Subject: pgAdmin III commit: Fix an issue with naming objects for backup