vifm icon indicating copy to clipboard operation
vifm copied to clipboard

do not reset tagged files if there's an error during an operation

Open jose1711 opened this issue 6 years ago • 3 comments

consider /tmp/source directory containing these files: 1 2 3 4 5 6 7 8 9 and /tmp/destination containing just a single file named 7. open the directories in vifm side-by-side, tag files 1, 3, 5, 7 and 9 in /tmp/source and enter :copy command. you'll get an error message (file already exists) and the tagging is gone. it still can be restored using gs but it would be great if vifm has an option to do this automatically.

jose1711 avatar May 12 '19 22:05 jose1711

Tried this now with :keepsel copy. Selection isn't reset, but error message isn't visible either because of "N files selected" message displayed whenever selection isn't empty.

xaizek avatar Jun 20 '22 17:06 xaizek

Selection isn't reset, but error message isn't visible either because of "N files selected" message displayed whenever selection isn't empty.

Yes, that does not help much. With this setup user does not have a clue that in fact there is an issue preventing copying from working.

jose1711 avatar Jul 14 '22 16:07 jose1711

That should be fixed now. It's wasn't specific to :copy, but how statusbar messages were handled (changing it doesn't seem to have caused bugs with messages or I haven't seen them yet).

xaizek avatar Jul 20 '22 22:07 xaizek