Tagsistant icon indicating copy to clipboard operation
Tagsistant copied to clipboard

prevent creating new file on each save of gedit

Open gaory1 opened this issue 6 years ago • 1 comments

Seems that when gedit saves a file, it always create a temporary one, then rename it. So if a file is saved several times during an edit procedure, or been edit for several times, multiple files appear with similar file names in the form of 'xx___realname'. Here is my solution. But I'm not quite sure whether it would cause other problem.

gaory1 avatar Jun 23 '18 02:06 gaory1

Hi wesley2012, thanks for sending your patch. Unfortunately what your patch does is just preventing file retagging.

The rename operation is performed every time you move a file from a location to another. This includes both moving a file across directories and renaming it, sometimes both at the same time.

Tagsistant uses file renaming of the first form to change a file tag set, which is called retagging. All the tags from the source path (the original one) are removed while all the tags from the destination path are added. By disabling the tagsistant_querytree_traverse() calls, you're suppressing this mechanism.

StrumentiResistenti avatar Jul 03 '18 21:07 StrumentiResistenti