Page 1 of 1

Treat dot & file extension as a separate string [word]

Posted: 28.02.2018, 22:38
by Forez
I would like the inner-workings of selection to be adjusted


For example I have a file named >>AAA BBB.txt<<. And I want to copy to the clipboard only the >>BBB<< part. So I click the file with my left mouse button, wait a little, click it the second time with left mouse button- and now after gaining access to the renaming mode I quickly double left click the >>BBB<< part

But what happens? Selection gets extended to the right end of the apparent string: I get >>BBB.txt<< as the selection

I am not a programmer, but this his how I understand it: If FC would check if that dot is the last dot in the filename then it could assume it is the dot separating the actual filename from its extension; and so it would know that the user wants to [most likely] select what happens to be a string of character in the filename. The dot & extension should be only selected if there would be three quick clicks- and if four, the whole filename and extension would be selected


For me the current behavior is really annoying and counter productive. As a result, I either do not use the quick double click in such situation, or have to later on delete the extension that was unwantedly copied

Re: Treat dot & file extension as a separate string [word]

Posted: 01.03.2018, 15:12
by Zorkoff
Wouldn't it be easier to select the file, press F2, drag the mouse over the BBB and press Ctl-C?

Re: Treat dot & file extension as a separate string [word]

Posted: 24.03.2018, 13:18
by Forez
Zorkoff wrote: 01.03.2018, 15:12 Wouldn't it be easier to select the file, press F2, drag the mouse over the BBB and press Ctl-C?
Easier? It is neither easier or quicker


You have to use keyboard; always - because of the F2 step [while CTRL + C can be evoked with mouse from shell menu]. So you cannot do this when like you are laying on the bed with only your wireless mouse

And most of all: you have to precisely select >>BBB<< part, with mouse by dragging the pointer [but stopping before the dot]

Re: Treat dot & file extension as a separate string [word]

Posted: 30.05.2018, 21:22
by Forez
A similar problem- but with folders: https://freecommander.com/forum/viewtop ... =19&t=8609

Re: Treat dot & file extension as a separate string [word]

Posted: 18.07.2023, 10:52
by Forez
Forez wrote: 28.02.2018, 22:38 [...]
I have a file named >>AAA BBB.txt<<. And I want to copy to the clipboard only the >>BBB<< part. So I click the file with my left mouse button, wait a little, click it the second time with left mouse button- and now after gaining access to the renaming mode I quickly double left click the >>BBB<< part

But what happens? Selection gets extended to the right end of the apparent string: I get >>BBB.txt<< as the selection
[...]
Although this is how also Windows Explorer does this, but cannot FreeCommander be better at this?

Re: Treat dot & file extension as a separate string [word]

Posted: 18.07.2023, 19:44
by Dreamer
What about using a dialog, with 2 fields, 1 for name, 1 for extension?

Re: Treat dot & file extension as a separate string [word]

Posted: 19.07.2023, 11:01
by Forez
If I am not mistaken this

Tools > Settings... > File/folder operations > Rename/Create > Use dialog window for rename

is a new option that I forgot about; thank you for reminding me about its existence. I will give it a try using it

Re: Treat dot & file extension as a separate string [word]

Posted: 21.07.2023, 11:05
by Forez
And there is also this issue concerning the last dot in a filename: https://freecommander.com/forum/viewtopic.php?t=12646