Focus - between windows

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Focus - between windows

Post by therube »

Focus - between windows


Say you have 2 windows open; 1 & 2

1, you search for
red | blue

& you sort by Name & you are focused on "red cat"

2, you search for
cat

& in that search one of the hits is "red cat"

then, in 2, you rename "red cat" to "blue cat"


On doing that, back in window 1, (oh not totally sure, particularly, but), as you're sorted by Name & as "R" is further down the alphabet, & what was 'R' is now 'B' (blue cat), window 1 followed that change, so window 1 focus is now at the B's rather then down at the R's.


Can one of the (Advanced) 'focus' options prevent window 2 from affecting the focus of window 1?


(As it is, knowing that this will happen, knowing, in most cases, that I am going to make a change, similar to above, in window 2, I'll, if I remember, I'll move focus in window 1 to a spot above or below where I was, & with that, the rename in window 2 does not affect the focus in window 1 [as window 1 was actually focused on something other then what I changed in window 2].)



(As is, all of the above may depending on what Advanced [focus] settings you do have enabled.)
void
Developer
Posts: 16899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus - between windows

Post by void »

Can one of the (Advanced) 'focus' options prevent window 2 from affecting the focus of window 1?
Tough to do as neither window knows the rename occurred from Everything.
I have put on my TODO list to add an option to prevent bringing the result list focus into view when the window is not in the foreground.



Disabling Tools -> Options -> Advanced -> keep_result_focus_in_view might help.
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Focus - between windows

Post by therube »

Disabling Tools -> Options -> Advanced -> keep_result_focus_in_view might help.
(With a quick look) that would probably work.
But by doing so, you then loose the ability to <sp> focus the result.


(The latter is more important, so I'll just work-around the issue.)
void
Developer
Posts: 16899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus - between windows

Post by void »

The focus will still follow the item.

This setting will only prevent Everything from bringing the focus into view from an external event.

You can press Space to bring the focus into view.
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Focus - between windows

Post by therube »

I'm still exploring.

Now thinking it is working, mostly.

Where it might not work, perhaps...

Select & cut a set of files in Everything
Paste said files in external program (Salamander file manager), into a different directory (from the source in Everything)

In that case, I think focus is following, even with 'keep_result_focus_in_view' disabled.
void
Developer
Posts: 16899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus - between windows

Post by void »

Currently, Everything will always keep items focused.
Even after a rename.
This is different to keeping the item in view.
-If this is not happening for you, please let me know.



Would an option to not keep items focused after a rename/move be useful?
If this option is set, after a rename, the focus would go to the item in the same "position".
This would also prevent the view from changing.
void
Developer
Posts: 16899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus - between windows

Post by void »

Everything 1.5.0.1356a adds the following advanced settings:

keep_result_focus_in_view_foreground_only
clear_was_result_focus_in_view_on_file_operation



To prevent the result list item focus from being brought into view when the Everything search window is not in the foreground:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    focus
  • Select keep_result_focus_in_view_foreground_only.
  • Set the value to: true
  • Click OK.


To allow the result list item focus to be brought into view after performing a file operation: (not useful for your case)
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    focus
  • Select clear_was_result_focus_in_view_on_file_operation.
  • Set the value to: false
  • Click OK.
Post Reply