Option to automatically remove spaces after file names...

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Option to automatically remove spaces after file names...

Post by TsunamiZ »

Please add an option to automatically remove spaces after file names.  

Ex:

file .jpg  >  file.jpg

It would make editing and pasting file names much more efficient.  Thanks.  :wink:
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Re: Option to automatically remove spaces after file names..

Post by JRz »

TsunamiZ wrote:[...]It would make editing and pasting file names much more efficient.  Thanks.  :wink:
I don't understand how this would make editing and pasting file names more efficient.

Obviously someone gave the file that name, including the space (typo excluded of course, but I suspect you won't be typing that wrong all the time :) ).
So why would you want X² to change this? What is gained by doing this?

I can imagine you'd want a way to get rid of these spaces doing a (mass) rename however. This is something which has been requested before: get editing capabilities on the mass renamer to be able to specify any changes to existing names (preferably by using RegEx expressions).
Dumb questions are the ones that are never asked :turn:
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Re: Option to automatically remove spaces after file names..

Post by TsunamiZ »

This is how it can help a lot:

cat 01.jpg > [double click to highlight and delete the "01"] > cat .jpg

Now wouldn't it be nice if x2 is smart enough to remove that excess space for you?  So it can AUTO correct to:

cat.jpg

Now imagine repeating this for a lot of similar situations.  :x
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Re: Option to automatically remove spaces after file names..

Post by TsunamiZ »

Another scenario:

You download a program installer off the net...

supapp.exe

You want to rename that file using copy/paste of the full name from the program's website--which is...

Super App 3.05  

Now try to select that file name and notice I've inconvenienced you and left 2 spaces after the name [perhaps the name was part of a sentence or something].  And so when you paste the copied name to rename the file, you get...

Super App 3.05  .exe

:x
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Re: Option to automatically remove spaces after file names..

Post by TsunamiZ »

Folder names already do this auto space correction.  File names should have it. too.  :wink:
BRX
Silver Member
Silver Member
Posts: 304
Joined: 2002 Feb 08, 12:12

Post by BRX »

I don't think that's a feature I want.

I often specifically add such a space because I want it to differ e.g. from a file with the same name but different content and want to have them in the  same folder (okay, I could rename them otherwise; still it's a valid filename).

I think that's more a matter of preference and something that can and should be done with the available rename tools like THERename or Flexible File Renamer.

As always, if it should be added please just as an option.
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Post by TsunamiZ »

As always, if it should be added please just as an option.
I did request it as an option.

But for practical purposes, I think more users will benefit from this feature than those who prefer to count the number of spaces after a file name instead of puting numbering after it.  :wink:
User avatar
snakebyte
Gold Member
Gold Member
Posts: 430
Joined: 2003 May 07, 07:14
Location: Seattle
Contact:

Post by snakebyte »

I had a similar problem.  

I download lots of files from the net. These files often contain underscores or dots in the file name instead of spaces. The file names are also in all small cases. I wanted a one click solution to fix the selected file names. No file renamer utility could do what I wanted with just one click, so I wrote a autoIt3 script and added it to my Xplorer2 toolbar. This script takes the selected files as input and it renames them, by replacing all the underscores and dots with spaces and it also capitalizes the file name.

As you see this is a special case and I couldn't have expected Nikos to add it in Xplorer2. TsunamiZ, your requirement is similar to mine and is not generic. What if tomorrow some one wants to remove leading space from a filename?

According to me one of the most powerful feature of is Xplorer2's user command and its parameter set. Try to take full advantage of this. You can write a simple AutoHotkey or autoIt3 script which can handle this special case for you.

Let me know if you need any help with the scripting.
Help! I'm an AI running around in someone's universe simulator.
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Post by TsunamiZ »

What if tomorrow some one wants to remove leading space from a filename?
It already does that.

x2 knows how to select the file name before the extension.  It's not that crazy to ask for removing the last space of a file name [like folders].  :roll:
User avatar
snakebyte
Gold Member
Gold Member
Posts: 430
Joined: 2003 May 07, 07:14
Location: Seattle
Contact:

Post by snakebyte »

TsunamiZ wrote:
What if tomorrow some one wants to remove leading space from a filename?
It already does that.
I was just giving that as an example. But what I wanted to point out was what you are looking for is a very user specific requirement and I doubt if it'll ever get implemented in Xplorer2.

BTW xplorer2 already removes extra spaces for files after file name just like for folders.
"abc.xyz    "  => "abc.xyz"

So folders are not being treated differently than files.
Help! I'm an AI running around in someone's universe simulator.
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Post by TsunamiZ »

snakebyte

But you missed the example.

cat .jpg  vs  cat.jpg

File name is before the extension.
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Post by TsunamiZ »

And the examples I pointed out are not uncommon for modern users to do.  So it has very practical and frequent uses for modifying file names.
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

snakebyte wrote:[...]As you see this is a special case and I couldn't have expected Nikos to add it in Xplorer2. TsunamiZ, your requirement is similar to mine and is not generic. What if tomorrow some one wants to remove leading space from a filename?
[...]
Very good point. I too think of X² as an extendable toolbox, with all the tools available to build more complex and specific solutions to your everyday filemanager problems. And as you point out very well, only generic problem solving tools are worthwile to implement, because they can help the majority of people and aid in building those specific solutions you need to solve your not so everyday problems 8)

Tsunamiz states that many people would benefit from this 'remove trailing space' thingy. Well, nobody has complained until now, so I think there are not that many people expecting this kind of functionality :)
Dumb questions are the ones that are never asked :turn:
TsunamiZ
Gold Member
Gold Member
Posts: 597
Joined: 2005 Nov 06, 04:44

Post by TsunamiZ »

Well, nobody has complained until now, so I think there are not that many people expecting this kind of functionality
If that is your thinking, then you're not one for innovation.  Lets wait for another file manager to get ahead of x2 right?  :roll:

Besides, you're quoting from someone who missed the example.
User avatar
JRz
Gold Member
Gold Member
Posts: 560
Joined: 2003 Jun 10, 23:19
Location: NL

Post by JRz »

No, you miss the point: I simply don't think this option of yours is innovative enough to be implemented. I (and that makes it a subjective opinion, I don't presume to speak on behalf of others) don't see the benefit and would turn that option to off immediately.

The behaviour X² is showing now with respect to selecting words is consistent with the way other programs do this selection (when double clicked) and I think that consistency should prevail in this case.
Dumb questions are the ones that are never asked :turn:
Post Reply