You may be right, but I worked around this using https://wiki.archlinux.org/title/NetworkManager#Network_services_with_NetworkManager_dispatcher
I added the CIFS shares to my fstab with the _netdev
option and created /etc/NetworkManager/dispatcher.d/30-nas-shares.sh containing (got the WiFi UUID using nmcli con show
):
#!/bin/sh
WANTED_CON_UUID="UUID-OF-MY-WIFI"
if [ "$CONNECTION_UUID" = "$WANTED_CON_UUID" ]; then
case "$2" in
"up"|"vpn-up")
mount -a -t cifs
;;
esac
fi
This waits for my WiFi to come up, ensures it’s my home WiFi, and then mounts my shares.
There are probably other and better ways to do it, but it works.
Your initial response got peoples’ backs up because of its dismissive tone and (it seemed to me, as you hadn’t provided context) apparent advocacy for web-based tools like O365 or GSheets.
Many office application users wouldn’t consider vim as an “office application”, as they have their word processing app, their spreadsheet app, their email app, their chat app, their file explorer/manager, maybe something other than Notepad as a text editor, etc, and don’t really know much beyond some of what each of them can do.
The fact that vim (or Emacs or vim/nvim with plugins, or LazyVim or Doom Emacs) can do all of those things would blow many minds.
But the setup effort and learning curve is still there, and also requires that they have sufficient permissions/policy to be able to install things.