SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

A collection of especially useful xplorer² topics and ideas. New users may find it helpful to look here before searching the other forums for information. >>>>>> Please post new material in the relevant forum. (New stuff posted here will be removed.) Thanks. -fg-

Moderators: fgagnon, nikos

Tuxman
Platinum Member
Platinum Member
Posts: 1703
Joined: 2009 Aug 19, 07:49

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by Tuxman »

nikos wrote: 2025 Oct 13, 05:38 "F2 selects only the base name" is meant for inplace rename
It has proven to be an excellent idea in the history of computer science to express things unambiguously that are described in documentation (and the option label is undoubtedly one such, albeit brief, description). It is certainly beneficial for the end-user if what is stated actually happens. If an option says "with this option, the following behaviour will be changed as follows", then an "and under the following circumstances" is only to be expected if the "following circumstances" are part of the description.

It's not as if there was a lack of space. Screens are patient. :)
Kilmatead
Platinum Member
Platinum Member
Posts: 4828
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by Kilmatead »

Now you know we're in trouble... when Tux goes back on his meds, speaks with an almost conciliatory hauteur, distinct absence of bombast and hyperbole... it's almost like... like... civilised discourse? Man, grown-ups are horrible! What's this world coming to? And in one my own threads yet!

Have we fallen so far only to land in a Baudrillardian simulacrum of reasoned stability? Outlandish! Who are you and what have you done with the real Tuxman? :shock:
Tuxman
Platinum Member
Platinum Member
Posts: 1703
Joined: 2009 Aug 19, 07:49

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by Tuxman »

You Irish certainly are a conundrum. 'This forum is not a chat, Tuxman, do try to be less casual and more spirited in your discourse!', and then one complies, yet it remains a subject of contention!
Kilmatead
Platinum Member
Platinum Member
Posts: 4828
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by Kilmatead »

Tuxman wrote: 2025 Oct 13, 16:44 You Irish certainly are a conundrum.
We get very nervous if forced to go more than a couple of days without being within ear-shot of a snide comment, irreverent riposte, or something we can argue about! It's our Achilles heel, and a foundation of the very Republic itself. Bellicose embellishment, exaggeration, caricature... mix in a few funerals, wistful poetic longing, a heck of a lot of stubborn sullen resentfulness of other people occasionally overflowing into inexplicable violence, and you've pretty much solved the conundrum. What can one do? :wink: :shrug:
Tuxman wrote: 2025 Oct 13, 16:44 'This forum is not a chat, Tuxman, do try to be less casual and more spirited in your discourse!', and then one complies, yet it remains a subject of contention!
That doesn't sound like anything I would ever say. Well, I might think it, but never say it. I mean, spirited discourse? There's no evidence of that. This forum is suitably staid and proper, and makes those Stack Overflow stick-in-the-muds look like a bunch of free-wheelin' hillbillies.

I can't even imagine what would have ever given someone a different impression. Scurrilousness, perfidiousness... they shall find no harbour here! We are the very lambs of God - in a motorcycle-club, sort of way. :twisted:
Tuxman
Platinum Member
Platinum Member
Posts: 1703
Joined: 2009 Aug 19, 07:49

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by Tuxman »

Kilmatead wrote: 2025 Oct 13, 17:31 We are the very lambs of God - in a motorcycle-club, sort of way. :twisted:
It is rather fitting for the current state of affairs that biblical dietary rules forbid eating certain animals, but not lambs. The Bible, naturally, makes no mention of motorcycles; however, I daresay the Hells Angels handle that aspect quite adequately. Here's to alternative deities. Bon appétit!
N1ck1
Member
Member
Posts: 14
Joined: 2022 Dec 01, 23:30

Re: SizeES: A Plugin for Fast, Persistent FolderSizes in x2 via Everything Search

Post by N1ck1 »

The greatest tool ever has once again come to the rescue...AutoHotkey!

To be able to just rename the basename I was able to create an AHK script that always auto waits for the rename popup, auto removes the file extension and saves it to auto insert back in before finalizing the rename upon pressing the "Enter" key.

Image
https://i.postimg.cc/ZnpcbtM2/x2-Animation.gif

Not like anyone needs the script but here it is if interested...

Code: Select all

SetTimer, Auto_x2NewItemName
Auto_x2NewItemName:
If WinExist("New item name: ahk_class #32770 ahk_exe xplorer2_64.exe")
{
	WinWait, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe,, 5
	x2SavedFN := ""
	x2SavedEX := ""
	x2NewItemName := ""
	ControlGetText, x2NewItemName, Edit1, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
	If x2NewItemName contains .bak
	{
		SendInput {End}
	} Else {
		x2SavedFN := RegExReplace(x2NewItemName, "(.+?)(\.[^.]*$|$)", "$1") ; Filename
		x2SavedEX := RegExReplace(x2NewItemName, "(.+?)(\.[^.]*$|$)", "$2") ; Extension
		ControlSetText, Edit1, %x2SavedFN%, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
		SendInput ^a
	}
	WinWaitClose, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
}
Return
#IfWinActive New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
Enter::
	ControlGetText, x2NewItemName, Edit1, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
	If x2NewItemName contains .bak
	{
		SendInput {Enter}
	} Else {
		SendInput {End}%x2SavedEX%{Enter}
	}
Return
!Z:: ; Alt+Z - Return Saved Full Filename / Remove Extension .bak
	x2SavedEX := ""
	ControlSetText, Edit1, %x2NewItemName%, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
	If x2NewItemName contains .bak
	{
		x2RemoveBAK := RegExReplace(x2NewItemName, "\.bak$", "")
		ControlSetText, Edit1, %x2RemoveBAK%, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
		SendInput {Enter}
	}
	SendInput {End}
Return
!B:: ; Alt+B - Auto Append Extension .bak
	ControlSetText, Edit1, %x2NewItemName%, New item name: ahk_class #32770 ahk_exe xplorer2_64.exe
	SendInput {End}.bak{Enter}
Return
Took some brainstorming but sometimes I even surprise myself!
Image