Re: PATCH: Enable backwards search in SQL Box

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: PATCH: Enable backwards search in SQL Box
Дата
Msg-id CA+OCxowa0670grhAK_6Wubt2b9o3hdeF5ZQcp5TpZMp89Fzf2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PATCH: Enable backwards search in SQL Box  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
Ответы Re: PATCH: Enable backwards search in SQL Box  ("J.F. Oster" <jinfroster@mail.ru>)
Список pgadmin-hackers



On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
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? 

No, I don't think so (if I'm understanding correctly). I believe what should happen is that:

- F3 should honour the search direction on the radio buttons, in all cases. If the Forward button is selected, F3 searches forward, and if the Backwards button is selected, F3 searches backwards.

- Shift-F3 should always do the opposite of what the radio buttons are set to. So, by default with the Forward radio button selected, Shift-F3 will search backwards, whilst if the Backwards radio button is selected, Shift-F3 should search forwards.

The reason for this is that the radio buttons give the most obvious visual cue, so F3 (Find Next) should follow what they are set to.
 


On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
Sure.
I will do that.


On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.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@mail.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@postgresql.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.linkedin.com/in/asheshvashi




--
Akshay Joshi
Principal Software Engineer 





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

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

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Add CREATE EXTENSION Support
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Add CREATE EXTENSION Support