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

Suggestions and feature requests.
Post Reply
Message
Author
User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#1 Post by Forez » 28.02.2018, 22:38

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
Last edited by Forez on 25.04.2023, 21:26, edited 2 times in total.

Zorkoff
Posts: 125
Joined: 10.05.2011, 23:14
Location: Boston, MA

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

#2 Post by Zorkoff » 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?

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#3 Post by Forez » 24.03.2018, 13:18

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]
Last edited by Forez on 25.04.2023, 21:25, edited 1 time in total.

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#4 Post by Forez » 30.05.2018, 21:22

A similar problem- but with folders: https://freecommander.com/forum/viewtop ... =19&t=8609

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#5 Post by Forez » 18.07.2023, 10:52

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?

User avatar
Dreamer
Site Admin
Posts: 6113
Joined: 19.08.2007, 23:40

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

#6 Post by Dreamer » 18.07.2023, 19:44

What about using a dialog, with 2 fields, 1 for name, 1 for extension?

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#7 Post by Forez » 19.07.2023, 11:01

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

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

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

#8 Post by Forez » 21.07.2023, 11:05

And there is also this issue concerning the last dot in a filename: https://freecommander.com/forum/viewtopic.php?t=12646

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests