You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc81433
Browse filesBrowse the repository at this point in the historyBrowse files
`extensions` controls conflict-file handling. Use an empty list to scan all plain text files in that scan directory.
72
+
73
+
## Duplicate cleanup
74
+
75
+
```bash
76
+
ins resolvething duplicates
77
+
ins resolvething duplicates --dry-run
78
+
ins resolvething duplicates --dir ~/wiki/vimwiki
79
+
```
80
+
81
+
This command uses `fclones` to group identical files. Redundant files are moved to trash, not permanently deleted.
82
+
83
+
Some groups can be resolved automatically:
84
+
85
+
- conflict-file duplicates keep a non-conflict file when one exists, otherwise the newest conflict file
86
+
- duplicate files inside `.stversions` keep the newest version snapshot
87
+
- groups with one regular file and matching `.orig` or `.tmp` copies keep the regular file
88
+
- groups made only of `.tmp` files keep one copy
89
+
90
+
Ambiguous groups open an interactive picker where you choose which file to keep. Use `--no-auto` to force interactive selection even for groups that are normally safe to resolve automatically.
91
+
92
+
Use `--show-ignored` to list duplicate groups that were deliberately skipped, such as normal live-file plus `.stversions` snapshot pairs.
93
+
94
+
## Syncthing conflict cleanup
95
+
96
+
```bash
97
+
ins resolvething conflicts
98
+
ins resolvething conflicts --dry-run
99
+
ins resolvething conflicts --dir ~/wiki/vimwiki
100
+
```
101
+
102
+
This command looks for Syncthing conflict filenames, reconstructs the original path, and opens both files in a diff editor. After the editor exits, `resolvething` compares the two files:
103
+
104
+
- if the original and conflict file now match, the conflict file is moved to trash
105
+
- if they still differ, the conflict is left in place
106
+
- missing, binary, or very large files are skipped
107
+
108
+
By default the diff editor is `$EDITOR -d`, falling back to `nvim -d`. Set `editor_command` in the config if you want a different editor command.
109
+
110
+
## Menu
111
+
112
+
```bash
113
+
ins resolvething menu
114
+
ins resolvething menu --gui
115
+
```
116
+
117
+
The menu shows every configured scan directory with current duplicate and conflict counts. From there you can:
118
+
119
+
- resolve everything for one directory
120
+
- resolve only duplicates or only conflicts
121
+
- open the directory
122
+
- edit the conflict extensions
123
+
- change or remove the scan directory
124
+
- add another scan directory
125
+
126
+
`--gui` opens the menu in a GUI terminal window.
127
+
128
+
## Command reference
129
+
130
+
```bash
131
+
ins resolvething duplicates [--dir <path>] [--no-auto] [--show-ignored] [--dry-run]
132
+
ins resolvething conflicts [--dir <path>] [--dry-run]
133
+
ins resolvething all [--dir <path>] [--no-auto] [--show-ignored] [--dry-run]
134
+
ins resolvething menu [--gui]
135
+
ins resolvething config show
136
+
ins resolvething config edit
137
+
```
138
+
139
+
## Dependencies
140
+
141
+
Duplicate cleanup requires `fclones`. The interactive flows use `fzf`. If a dependency is missing, `ins` will try to install it through the supported package managers.
142
+
143
+
Files are moved to trash using `trash`, `gio trash`, or a fallback trash directory under the user data directory.
0 commit comments