Re: Global v.s. local tag storage, and some suggestions
Posted: 26 Feb 2019 11:33
Ah. The term "local" tends to remind of the local system, as in local vs network, what with your recent foray into MUT. 
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Agreed, fixed name should be used for consistency.So what about this? We could used a fixed name, e.g. "XYplorerTag.dat", and then do it like this (GUI commands in bold, corresponding scripts in fixed font):
Agreed, after the export action, don't remove the exported tags from main DB.Export Tags To Local Database = tagexport("XYplorerTag.dat", , 3); (= store relative to tags database; don't remove from main DB)
Import Tags From Local Database = tagload("XYplorerTag.dat", 1); (= permanently merge into current DB)
After Import, the local DB survives (or should it be killed?): Prompt?
Agreed, I think the captions should be concise.Maybe the captions should be simpler:
Export Local Tags
Import Local Tags
It's really hard to find a caption both concise and without ambiguity, thoughImho thats too broad / generic.
More specific:
Export Tags to Local Folder(s)
Import Tags from Local Folder(s)
SureAnother question: should it be just the location, or include subfolders (= the branch)?
Partially confirmed. With "Save changes to disk immediately" applied to tags, they are not saved immediately for items created by copy-paste action.highend wrote: ↑28 Feb 2019 22:10 There is one thing that bothers me...
The server has ALL files, the clients none (they tag items via a mapped network drive from the server)!
Using this setting on all machines (clients + server)
Configuration | General | Startup & Exit | Save Settings | [✔] Save changes to disk immediately
Button "Apply to..."
[✔] Tags
Now lets imagine you copy an already tagged file "1.txt" with tag "one" into the same folder on a client
machine. It gets a suffix. The Tags column updates and shows that this file also has the tag "one".
Now on the server side:
The new file "1 - Kopie.txt" is immediately visible (it's on the local file system!) but because the client,
that created it didn't trigger a "save tags" automatically, the tags column shows no entry for it.
If someone on the server would now tag it to lets say "hey - new file", just because it didn't had
a tag yet (at least on the server side) this new tag would be replicated to all other machines.
We really need a way that after a copy, delete or move "job", the tags are saved immediately as well
(as long as the Save changes to disk immediately option is active). Doing this manually would be
a pain in the ass and if someone forgets to do it and another machine that sees e.g. a new file
with no tag and tags it, would (most likely) propagate the wrong tag back to all machines...