Your comments
Yes, I consider checking whether the file was changed on the server by looking at the file size and/or modification date and warning the user before upload.
I'm not sure if this is really necessary.
Hmm, after I re-read your post I think I do understand now.
Currently, you can only use x-callback-url calls to open files stored in "Local Files" or "iCloud" in Textastic - but not files stored in external file providers. See https://www.textasticapp.com/v7/manual/integration_other_apps/x-callback-url.html#open
I'm not sure if I understand. After you use the "Open…" command in Textastic to open a file from iCloud Drive or Dropbox, you can use the list of recent files to open the same file again. The list of recent files is basically a list of deep links to previously opened files: https://www.textasticapp.com/v7/manual/managing_files/recent_files.html
You can also directly open Textastic from the Files app:
- tap and hold the file you want to open in Textastic
- tap "Share"
- choose "Copy to Textastic" or "Open in Textastic" (if you see "Copy to Textastic": this is a bug in iOS, it changes to "Open in Textastic" after the first use)
Next time you tap on a file with the same file extension, it will be automatically opened in Textastic.
Oh, I see. Textastic stores local files in a so-called "application group container" - this was necessary so that Textastic 7 could seamlessly access files stored in Textastic 6. It's also necessary if I ever want to add a share extension that can access local files.
Unfortunately, the Files app currently does not support "On my iPhone" files to be in an application group container. I have reported this as an enhancement request to Apple, but so far this hasn't been implemented by them.
Textastic already supports the Files app through the "Open…" command. See this topic in the manual for more details:
https://www.textasticapp.com/v7/manual/integration_other_apps/external_files_folders.html
I'm not trying to mislead anyone. I have made some preparations for live editing in the UI of Textastic 7. The tab bar was a necessary step for this for example (to make space for additional buttons in the navigation bar above it). I have also implemented parts of the UI for showing the connections below "Local Files" and "iCloud", but removed it so I could ship Textastic 7.
The big blocker is that Textastic currently uses libcurl for (S)FTP connection and it might not support all the commands I need to send to a server. I'm not sure yet if I can continue using it or if I need to switch to another FTP library to implement live editing (which is obviously a big change).
I'm not aware of any problems in general with the update, but looking at the screenshots I would suggest to restart your Mac and try it again.
You may also try to delete the app from Applications and download it again from the Mac App Store instead of updating.
Hello, currently, Textastic does not support file transclusion.
I'll consider adding it in a future update.
Customer support service by UserEcho
After opening a .mjs file, you can select JacaScript as the syntax definition in the file properties popover:
https://www.textasticapp.com/v7/manual/viewing_editing_files/file_properties.html