Add "reset deltas" functionality
Is it possible to add "reset deltas" (https://docs.syncthing.net/users/syncthing.html#cmdoption-reset-deltas) to the app somehow?
Reset deltas is a useful feature for troubleshooting various scenarios with syncing devices properly, it would be handy to have this implemented in this app in some way so that going to the command line isn't necessary. Perhaps a button in Preferences, so it's somewhat hidden?
Its indeed a nice feature to have, the GUI is currently very primitive and need some love with some more functionality (e.g environment variables).
Second that and can we do it at runtime without restart?
Is there any way to reset deltas right now using this application? Even using the CLI?
Could be with the following (not tested)
- Stop syncthing
-
defaults write com.github.xor-gate.syncthing-macosx Arguments '--reset-deltas'see https://github.com/syncthing/syncthing-macos#preferences - Start syncthing
- Wait for delta sync
- Reset Arguments to nothing
defaults write com.github.xor-gate.syncthing-macosx Arguments ''
Thanks for your input, as I read the docs more closely I realized there was a way to do this with default arguments.
Here's the script that works for me.
# Enable reset-deltas
defaults write com.github.xor-gate.syncthing-macosx Arguments '--reset-deltas'
# quit syncthing
osascript -e 'tell application "syncthing" to quit'
# start syncthing
open -a "syncthing"
# sleep 5 seconds to allow syncthing to start
sleep 5
# remove the default arguments for next start
defaults delete com.github.xor-gate.syncthing-macosx Arguments
Thanks again for your help and maintaining this awesome project!