Re: PATCH: Enable backwards search in SQL Box

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, "J(dot)F(dot) Oster" <jinfroster(at)mail(dot)ru>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: PATCH: Enable backwards search in SQL Box
Date: 2014-02-25 09:38:30
Message-ID: CANxoLDehNBe3Tuiv8+0tfM7iU_ND_aw1rdS6eAYWcOWj12g+fg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Dave

Ashesh asked me to review the patch. I have reviewed the patch and tested
it. Found one behavior which gets change after applying the patch.

*Behavior Before*:- When search direction is forward and user press F3, it
searches the string in forward direction. Similarly if search direction is
backward and user press F3, it searches the string in the backward
direction. Nothing will be happen when user press Shift-F3.

*Behavior After *:- When user press F3, it searches the string in forward
direction while on pressing Shift-F3, it searches the string in backward
direction. It is not dependent on the search direction selected from the
dialog. Also the selection of radio button is dependent on the key press,
if F3 is pressed then forward button is selected and if Shift-F3 is pressed
then backward is selected.

Is this behavior acceptable?

On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com
> wrote:

> Sure.
> I will do that.
>
>
> On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
>> Ashesh, can you look at, and if appropriate, commit this please?
>>
>> Thanks.
>>
>> On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster(at)mail(dot)ru> wrote:
>> > Hello!
>> >
>> > Pressing F3 in query editor makes the previously started search
>> > continue forwards.
>> > This patch adds expected behavior for Shift-F3.
>> >
>> > There is a minor inconvenience when just changing the search direction
>> > - you have to press (Shift-)F3 *twice* for the (previous)next occurence
>> > to get highlighted. That's because first time goes for cursor movement
>> > to the corresponding boundary of current occurence. But that also
>> > happens when search direction is changed with dialog radio-buttons, so
>> > I think it's ok.
>> >
>> > --
>> > Best regards,
>> > J.F.
>> >
>> > --
>> > Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
>> > To make changes to your subscription:
>> > http://www.postgresql.org/mailpref/pgadmin-hackers
>> >
>>
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>
>
> --
> --
>
> Thanks & Regards,
>
> Ashesh Vashi
> EnterpriseDB INDIA: Enterprise PostgreSQL Company<http://www.enterprisedb.com>
>
>
>
> *http://www.linkedin.com/in/asheshvashi*<http://www.linkedin.com/in/asheshvashi>
>

--
*Akshay Joshi*
*Principal Software Engineer *

*Phone: +91 20-3058-9517Mobile: +91 976-788-8246*

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Attila Soki 2014-02-25 15:29:44 frequent crash in explain analyze window
Previous Message Ashesh Vashi 2014-02-20 11:39:57 Re: PATCH: Enable backwards search in SQL Box