Middle click last tab is clearing search box

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 337
Joined: Wed Jan 09, 2013 9:06 am

Middle click last tab is clearing search box

Post by w64bit »

Is there any setting to use to have middle click on last (single) tab not to clear search box = not to close last tab?
i have:
tabs_close_window_with_last_tab=0
tabs_always_show=1
void
Developer
Posts: 19665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Middle click last tab is clearing search box

Post by void »

In other words, you want the middle click on the last tab to do nothing?

Disabling tabs_close_window_with_last_tab will set your search to your Tools->Options->Home->Search value.



Are you spamming middle click to close a bunch of tabs?
I will consider a "close all tabs on the right" options, like Firefox.
Alt + Left Arrow will restore the last search.
tuska
Posts: 1366
Joined: Thu Jul 13, 2017 9:14 am

Re: Middle click last tab is clearing search box

Post by tuska »

void wrote: Mon Sep 15, 2025 6:18 am I will consider a "close all tabs on the right" options, like Firefox.
I am also interested in the 'close_all_tabs_on_the_right' option to add it to my commands in a bookmark for a default/standard view.

Code: Select all

/echo off
/comment - ALT+ENTER causes a line break / add a newline ...
/comment - about:home <ENTER> = Filter "Everything" | about:keys <ENTER> = Keyboard Shortcuts | about:config = Path\Everything.ini | [ALT+F6] whole:about:exe|whole:about:ini  nop:"Everything Service running" = Path\Everything.exe, Path\Everything.ini
/comment - nop:"my bookmark comment" ... can also be used for comments in the Everything search box before or after the search query | https://www.voidtools.com/forum/viewtopic.php?p=68068#p68068
/comment - https://www.voidtools.com/forum/viewtopic.php?t=15288 Default view - Standard view [ALT+Y]
/comment - https://www.voidtools.com/forum/viewtopic.php?t=14954 [SOLVED] Commands for Menu "View" > Preview ... ON/OFF in a bookmark or filter
/comment - "Filter" field starting at 35.00 cm, Monitor 24'', Scaling 125%, 1920 x 1200 pixels (native screen resolution), maximised view | FastStone Capture screen ruler: https://www.faststone.org/FSCaptureDetail.htm, https://www.ghisler.ch/board/viewtopic.php?p=464783#p464783
/comment - /view=0;icon_use_thumbnails=!icon_use_thumbnails;icon_size=icon_use_thumbnails?64:16  https://www.voidtools.com/forum/viewtopic.php?p=51189#p51189 - Ctrl+Shift+F7 On/Off
/comment - /close_all_tabs_on_the_right (not yet implemented) - https://www.voidtools.com/forum/viewtopic.php?t=16905 Middle click last tab is clearing search box
/comment - /columns=[{ ... width: --> Menu "Help" - "Troubleshooting Information" (Default view) -OR- file: "Session.json" (Current view). [Option: Everything.exe -update ... saves the file "Session.json"]
/comment -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/columns [{"name":"Name","width":372},{"name":"Path","width":595},{"name":"Extension","width":74},{"name":"Size","width":80},{"name":"Total Size","width":89},{"name":"Date Modified","width":104},{"name":"Date Created","width":104},{"name":"Date Accessed","width":133},{"name":"Title","width":148},{"name":"Subject","width":148},{"name":"Comment","width":148},{"name":"Tags","width":148},{"name":"Authors","width":148},{"name":"File List Name","width":178},{"name":"Column A","width":133}]
/hide-bookmarks-sidebar
/hide-filters-sidebar
/hide-folders-sidebar
/hide-preview
/zoom=100
/view-details
/maximize
/view=0;icon_use_thumbnails=0;icon_size=icon_use_thumbnails?64:16

I would like to add the following thoughts on this topic:
  close_all_tabs_on_the_right=# ... Everything.ini
  Consideration of: tabs_close_window_with_last_tab = false ... the first tab always remains visible.
/close_all_tabs_on_the_right=3 The first three tabs remain fixed, all tabs to the right of them are deleted.
                                                Such a configuration would be useful, for example, if you want to have the search query:
#clipboard:

                                                permanently open in a separate tab, etc.
tuska
Posts: 1366
Joined: Thu Jul 13, 2017 9:14 am

Re: Middle click last tab is clearing search box

Post by tuska »

tuska wrote: Mon Oct 27, 2025 12:50 pm I would like to add the following thoughts on this topic:
...
  Consideration of: tabs_close_window_with_last_tab = false ... the first tab always remains visible.
I would like to elaborate on this point:

Currently, for example, the situation is as follows:
- There are 3 tabs.
- Because there are two more tabs after the first tab,
  the first tab can be closed and the two remaining tabs move to the left.
This behavior is not desired.

What is desired is:
The first tab should always remain open(!), i.e.

a) it should NOT be possible to delete it with this selected option above
b) with File | Close Tab CTRL+W (Global),
    either NO reaction should occur
    - OR -
    a message should appear stating that this tab CANNOT be deleted

This request is particularly helpful, for example, if the following is present
in the search box of Everything on the first tab:
#clipboard:

(Contents from the clipboard are automatically searched for in Everything).

Perhaps with a new option?
Tab Locked ... and an asterisk (✼ ✱ ★) before the “x”?

Please take this into account.
Thank you!
void
Developer
Posts: 19665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Middle click last tab is clearing search box

Post by void »

the first tab always remains visible.
This would have to be a different feature.
Pinning tabs is on my TODO list.
Pinning a tab would prevent it from being closed.
tuska
Posts: 1366
Joined: Thu Jul 13, 2017 9:14 am

Re: Middle click last tab is clearing search box

Post by tuska »

void wrote: Thu Feb 12, 2026 12:46 am Pinning tabs is on my TODO list.
Pinning a tab would prevent it from being closed.
Yes.

This option would help:

"This tab is locked! Close anyway?
Yes No Cancel"


... so that a user can close a locked tab at their own request.

Currently, the most important thing for me would be to be able to close all tabs except for the first one: -> Default view
tuska
Posts: 1366
Joined: Thu Jul 13, 2017 9:14 am

Re: Middle click last tab is clearing search box

Post by tuska »

tuska wrote: Thu Feb 12, 2026 10:42 am Currently, the most important thing for me would be to be able to close all tabs except for the first one: -> Default view
Everything-1.5.0.1405a - by void » 26.02.2026 wrote:     added options to close multiple tabs.
Thank you very much for this implementation!   :)
 
2026-02-26_Close Multiple Tabs.png
2026-02-26_Close Multiple Tabs.png (28.19 KiB) Viewed 1441 times
 
I would also like to ask you for Command IDs for

- Close Tabs to Left
- Close Tabs to Right
- Close Other Tabs

so that I can add them to the “Default View” bookmark.

Thank you in advance.
void
Developer
Posts: 19665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Middle click last tab is clearing search box

Post by void »

Code: Select all

#define UI_ID_TABCONTROL_CLOSE_OTHER_TABS				40410
#define UI_ID_TABCONTROL_CLOSE_TABS_TO_LEFT				40411
#define UI_ID_TABCONTROL_CLOSE_TABS_TO_RIGHT				40412
These commands close other tabs relative to the active tab.

I will update Command IDs
tuska
Posts: 1366
Joined: Thu Jul 13, 2017 9:14 am

Re: Middle click last tab is clearing search box

Post by tuska »

2void
Thank you very much for promptly providing the command IDs!
Post Reply