Search bar and object

Have a suggestion for "Everything"? Please post it here.
Post Reply
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Search bar and object

Post by nagan »

The behavior regards the display of objects has changed when the cursor gets back to the search bar and any changes has been made.
1.Toggling to the search bar from the results window blocks the whole search term.Pressing Backspace erases it completely fine. But pressing the left arrow leads to one character left. If the last character alone had to be changed it will involve another key press to the right.Can the cursor be made to remain at the end on a left arrow press.
2.With no search terms , toggling between results and search window continues to show 1 object blocked.In such a condition -nil search (cursor at start)or a change in the search query(presently working) displaying object count will be ideal.
void
Developer
Posts: 17155
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search bar and object

Post by void »

1.Toggling to the search bar from the results window blocks the whole search term.Pressing Backspace erases it completely fine. But pressing the left arrow leads to one character left. If the last character alone had to be changed it will involve another key press to the right.Can the cursor be made to remain at the end on a left arrow press.
Should the left key move to the start of the selection and the right key move to the end of the selection?
I have implemented this for the renaming edit in the result list (see the ini option rename_move_caret_to_selection_end)
Maybe something similar?
2.With no search terms , toggling between results and search window continues to show 1 object blocked.In such a condition -nil search (cursor at start)or a change in the search query(presently working) displaying object count will be ideal.
Do you mean when the search edit has focus, the number of results should be displayed in the status bar instead of the current selection count?
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Re: Search bar and object

Post by nagan »

Should the left key move to the start of the selection and the right key move to the end of the selection?
I have implemented this for the renaming edit in the result list (see the ini option rename_move_caret_to_selection_end)
Maybe something similar?
I make a search for abc. Go to results , back to search. abc is highlighted and the cursor remains at the right. Pressing back key erases it completely-FINE. If I press left key why not the cursor remain to the right of c except that the highlighting is removed. Presently it lands up at b.So if I had to change the last letter c I have to make a extra key press. But that is upto you and the how the users are accustomed to. The present behavior (not the one I am suggesting) is the universal behavior including that of the Windows edit.
Do you mean when the search edit has focus, the number of results should be displayed in the status bar instead of the current selection count?
Yes , if a person goes back with an intention to search , the blocked item may loose its significance.
void
Developer
Posts: 17155
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search bar and object

Post by void »

I make a search for abc. Go to results , back to search. abc is highlighted and the cursor remains at the right. Pressing back key erases it completely-FINE. If I press left key why not the cursor remain to the right of c except that the highlighting is removed. Presently it lands up at b.So if I had to change the last letter c I have to make a extra key press. But that is upto you and the how the users are accustomed to. The present behavior (not the one I am suggesting) is the universal behavior including that of the Windows edit.
I understand, but the common replacement is pressing left will move the caret to the start of the selection.
I will consider an option to just clear the selection all together (so the caret stays at the end of the selection), move the caret to the start of the selection or like windows just move the caret to the left.
Yes , if a person goes back with an intention to search , the blocked item may loose its significance.
I will consider the option clear the selection when focusing the search edit.
or maybe the selection should be retained, but the status bar will show the result count instead of the selection count?

Thanks for the suggestions.
void
Developer
Posts: 17155
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search bar and object

Post by void »

I have added the ini option

Code: Select all

state_search_edit_move_caret_to_selection_end
Set this to 1 to enable, 0 to disable.
I know its not quite what you asked, it is just something I was playing around with...

This ini option will also be renamed to search_edit_move_caret_to_selection_end in a future update.
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Re: Search bar and object

Post by nagan »

void wrote: Set this to 1 to enable, 0 to disable.
I know its not quite what you asked, it is just something I was playing around with...

This ini option will also be renamed to search_edit_move_caret_to_selection_end in a future update.
Okey , might be useful for some. What about an alternative 2 to keep the caret at the right end, not the present 0 choice - ie remove the highlighting but stay put there itself..
void
Developer
Posts: 17155
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search bar and object

Post by void »

Check out the ini option:

Code: Select all

select_text_mode2
0 = no selection
1 = select all
2 = move caret to end

Please try adding the following line to the end of you Everything.ini when Everything is closed:

Code: Select all

select_text_mode2=2
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Re: Search bar and object

Post by nagan »

If the option is 2 , it removes the advantage of a backspacing the entire query to start fresh. What I was looking for is something like if you press the left arrow , the cursor remains where it is (ie at the end) and the highlight goes off .Presently it slips to one character left.
nagan
Posts: 302
Joined: Thu Apr 18, 2013 11:44 am

Re: Search bar and object

Post by nagan »

If you had decided to bring in the result count , when the search edit gets focus , in 653b still the selection count is displayed until the search term is erased. Thanks..
Post Reply