Show files in thumbnail mode. The file names should be on two lines or more, otherwise the bug won’t happen. Inline edit the file name, change something and before pressing Enter press Ctrl Shift Home or Ctrl Shift End to select the whole name. The file name change you made is lost.
Another smaller annoyance: if you start selecting otherwise, for example Shift Up or Down Arrow and press Shift Home, then the selection moves to the previous line.
I would also add that being in a multi‐line edit, it’s strange that the Home and End keys jump at the end of the file name rather than at the end of the line.
This is intended, not a bug, although it was undocumented until now.
It happens in all display modes, and whether the name is on one line or two.
It's part of the functionality for copying other filenames when renaming, which is documented:
You can copy the name from the previous file by pressing Ctrl+Shift+Up (or Ctrl+' ), or from the next file by pressing Ctrl+Shift+Down (hold the Alt key down as well to also copy the extension). Continue to press the keys to move up/down the list of neighboring files to copy their filenames, which will flash briefly to show which item the name was copied from.
We'll add the missing detail to the manual:
Pushing Ctrl+Shift+Home will reset the item to its original name and reset the up/down position.
If you want to select the whole filename, use Ctrl+F (name without extension) or Ctrl+A (everything, including the extension).
It's not really a multi-line edit control. You can't put a line feed (return) in a filename. It's a single line that's wrapped.
Thanks Leo for the explanation. However, what’s the purpose of Ctrl Shift Home losing your modified text without warning and with no way to recover it? I don’t see this function useful for anything. If so, I would rather want to disable it in my configuration.
I didn't chose the key, but my guess was it was chosen as a key that was thought not to do anything already, without realising it was an alternative to the more common Ctrl+A. I had no idea myself until this thread.
Is it even a standard hotkey? If I try Ctrl+Shift+Home in File Explorer while renaming, it does the same thing as Shift+Home, as far as I can tell, and it doesn't select the whole filename (unless you're at the end of it; it selects everything to the left of the cursor). Adding Ctrl here doesn't seem to be needed or do anything as standard.
I tend to see this multi‐line edit like in a little text editor. Unfortunately Shift Home only selects the current line in DOpus, whereas in text editors Ctrl Shift Home selects everything from the current position to the beginning of the file. That’s why I often mistake the key for what it doesn’t do and lose the new file name.
I see what you mean. Maybe we can make this optional, or even just get rid of it. I doubt many people even know the existing hotkey is there or what it does.
Ctrl Up and Down while in file name edit mode is useful if you want to recall the name from another file. However, it seems to be buggy also. Right now I’m in a folder and Ctrl arrow recalls a selection of names that are in the recycle bin!
Ctrl without Shift will let you pull up names from the history previous renames, which is what you're seeing. That is not a bug, and is documented in the manual.
Finally had a chance to look at this properly. I've made a change for 13.2.1 (i.e. the first beta after 13.2 goes out) which will make Ctrl+Shift+Home while renaming in Thumbnails or Large Icons modes do the standard thing instead of being overridden.
Leaving the other modes as Ctrl+Home is enough in those; they don't wrap to multiple lines while editing.