Page 1 of 1

[Feature] Undo for the Editor

Posted: 2018-01-31, 05:42 UTC
by DärJohannes
I am missing an Undo function in the TC editor.

Yesterday, I wrote a long text in Total Commander's editor and after finishing the text, when I wanted to copy and paste it to somewhere else, I accidentally chose "Paste" first (not copy) and thereby replaced the whole text by the contents of the clipboard.

An Undo function in Total Commander's editor would have been exactly what I needed to fix that mistake.

Posted: 2018-01-31, 08:41 UTC
by DrShark
Simple Undo in Editor is implemented in latest TC betas, but currently only for Android 6 and newer (I don't know whether it is planned or even possible to add it for previous Android versions). So if you have a compatible Android device, you can try it with current TC4A 2.81 beta 10 (Google Play/APK)

Posted: 2018-02-01, 10:44 UTC
by ghisler(Author)
It only support on Android 6 and newer because that's when Google added it to their edit control.

Posted: 2018-07-09, 12:02 UTC
by sjlouis
How can we activate this function? I don't find it and I'm on Androïd 7.1.

Thank you :D .

Ok, I've found it on another post :wink: .

Posted: 2018-07-09, 12:18 UTC
by Stefan2
sjlouis wrote:Ok, I've found it on another post :wink: .
And how about posting the URL to that post or the solution itself?

Taking and Giving, you know?




 

Posted: 2018-07-09, 13:04 UTC
by sjlouis
It's in this post :
viewtopic.php?t=49670
ghisler(Author) wrote:Unfortunately Undo is very limited in the Android edit control: It is only available after
- typing
- pasting text
- deleting text
and it can only undo a single step.

You need to open the edit box context menu to see it. On some devices, you get this by long tapping on a word. On others, it appears when you double tap. Then there will appear an arrow which points to the left and forms an arc (a bit like a rainbow in shape) as the first menu item. If it is missing, then undo is not available at the moment, or not supported.

Re: [Feature] Undo for the Editor

Posted: 2022-01-18, 02:35 UTC
by Lee321987
I don't have an undo button in my context menu, but if I switch to a keyboard with a "Control" key (like "Hackers Keyboard"), I can use CTRL+z.

Total Commander 3.24
Android 7.0
Huawei tablet with EMUI 5.1.2

Re: [Feature] Undo for the Editor

Posted: 2022-01-18, 08:08 UTC
by ghisler(Author)
Do you mean in the editor? TC should add a curved right to left arrow when there is no undo menu item in the context menu.

Re: [Feature] Undo for the Editor

Posted: 2022-01-18, 08:19 UTC
by Lee321987
Yeah - the TC text editor.
No "undo" button or context menu item.

Re: [Feature] Undo for the Editor

Posted: 2022-01-18, 08:43 UTC
by ghisler(Author)
Your EMUI version is probably too old. My Huawei tablet Mediapad M5 (model SHT-W09) has EMUI 9.1.0 and shows the Undo context menu item.

I'm loading the (private) editor method "canUndo" to check whether the current edit box allows Undo or not. This doesn't seem to work on your device.