Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
+1 vote
in vifm by

VIFM Version : 13

I was selecting two files with the “t” key to perform a “:diff” operation

Inadvertently I pressed the key “u”

Which had the effect of “undo” an older rename operation without me really noticing.

Of course, there was a line at the bottom of the screen that displayed

UNDONE ONE GROUP

I almost didn't realize it

Do you think it's reasonable not to add a confirmation box, but rather an information box?

Like this example, which I designed with GIMP:

The user has always the possibility to make ctrl -r to redo - in the case of an error

if you think it's a good idea, I can fork the current branch, make some changes and push the changes

2 Answers

0 votes
by

Do you think it's reasonable not to add a confirmation box, but rather an information box?

I think that would be weird. Adding a new value to 'confirm' (without adding it to option's default) and asking for a confirmation when it's set would be more consistent.

by

Asking for confirmation sounds good.

Is the option already integrated or should we do it?

by the way, thank you for your feedback

by

The 'confirm' option already exists, it was added as a list of values to allow extension for cases like this one.

0 votes
by

I've also accidentally hit u in the past.

A quick fix is to remap the keys:

nnoremap u :undolist<CR>
nnoremap U u
by

@qadzek

I've already implemented your remap, thank you for the beautiful and safe workaround

Now after pressing shift -u U I am able to undo

and with u I can read the Undolist:

From there I can navigate up und down.

Is it possible to take some action from the undo list?

by

Is it possible to take some action from the undo list?

Only change current position within the list with r, which is fairly uncommon operation.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...