Open HeladoDeBrownie opened 3 years ago
I have confirmed this issue. However, this also happens to internal documents:
1) in Files
app, add tags to one of iVim
's document;
2) edit the file in iVim
and save it;
3) the tags disappear.
It turns out, Files
app's tags support seems limited on iOS or iPadOS. Apps cannot manipulate its tags since the related APIs are not available on these platforms.
sorry, i don't understand what's different between what i said and what you added.
is there something inherent about the way ivim/vim writes files that makes this harder to deal with than usual? most apps do not erase tags when they edit files.
I thought we were talking about external files.
Anyway, I think this happens because vim does file IOs through low-level standard C library but the tags
are maintained via the API level specifically by Apple (e.g. NSFileManager or NSURL). Which means vim does not respect the tags
mechanism.
I tried to obtain the tags beforehand and restore them afterward. Unfortunately, the way I know (via NSURL resources) is not available on iOS.
ah, well thanks for taking a look at it!
to reproduce:
:idocuments
or the files app, long press the file, press tags, and add a tag to it:idocuments
or the files app and observe that it no longer has a tag