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.
0 votes
in vifm by

i'd like to try avfs as an alternative to (really slow) archivemount. is there a way how to integrate it easily with vifm? avfs i have is fuse-enabled and works as described at https://github.com/glycerine/avfs/blob/master/avfs-1.0.3/doc/README.avfs-fuse.

1 Answer

+1 vote
by

Archives can be entered like this, but you can't leave them by going to parent directory as vifm wants to do unmounting, which fails. I guess something like FUSE_MOUNT3 which will skip unmounting is needed.

In vifmrc:

filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.deb
       \ {Mount with avfs}
       \ FUSE_MOUNT|mount-avfs %DESTINATION_DIR %SOURCE_FILE

$VIFM/scripts/mount-avfs:

#!/bin/sh

dest=$1
file=$2

rmdir "$dest"
ln -s "$HOME/.avfs$file#/" "$dest"
by

thank you, mounting works nicely but as you said - exiting a browsing mode is a bit of a hassle

by

Added FUSE_MOUNT3 format.

...