Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

cut without moving the file to the trash

0 votes
asked Jul 4, 2019 in vifm by Philipp

I have the following issue: when I want to MOVE a file from folder A to folder B on a fileserver (or more general on a hdd which does NOT contain the vifm trash folder) with "dd" and "p" the file is copied to the vifm trash folder on my local hdd and then copied back again on the fileserver. That takes a lot of time, e.g. for a file with several GBytes.

My current workaround is to open the folder A and B on two different panes and to ":move" the file. As a result the file is moved immediately.

However, using "dd" and "p" is much more convenient. Is there an alternative key mapping or a way to avoid copying the file to the local trash folder?

1 Answer

0 votes
answered Jul 4, 2019 by xaizek
selected Jul 4, 2019 by xaizek
Best answer

Default value of 'trashdir' option should account for this via %r/.vifm-Trash-%u part, which creates trash directory per user per mount point when possible (maybe it's not possible in your setup).

Alternatively, instead of using dd+p, use yy+P to move files from source to destination avoiding the trash.

commented Jul 4, 2019 by Philipp

Thank you, yy+P is awesome!

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.