Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Open twice a file if via pop up window of long press in apps dock
-
@cvp thanks. Not sure, but I feel that you think that the long press shows files currently opened in tabs. I assume this based on:
And you can see, that even old txt files, no more open in a Pythonista tab, stay in the recent files which Files App présent when I do a long press in the dock.
Long press on dock icon behaves like history in Safari. It shows files you did open and then even closed ones. That was the reason for so many questions I had, because you can open file a.txt via Files.app, then close it, file is in the history, you can open a.txt from This iPad for example (not Files.app), but the file a.txt from Files.app is still in the dock icon long press history. When you tap on it, another tab is opened, because it's different file, it's the file you did open via Files.app, even a long time ago.
-
@zrzka Could you try the same sequence
- launch Pythonista
- open a .txt file
- close Pythonista, no remove from memory
- assuming Pythonista is in your dock, long press on it
- do you see the txt file in the presented ones?
- if yes, tap on it
- is it opened in a 2nd tab?
-
@zrzka sorry, previous post typed before I read your answer, which seems coherent.
Thus not a real problem but not very professional from Apple... -
@cvp tried, no problem. There's one thing which I find confusing. Recent files (long press gesture) contains files opened from iCloud & from Files.app (external files). But if you open a file from This iPad the file is not listed there. It can lead to a confusion, because when you open file with same name from This iPad, you do assume that the file appears there too and that it's your last file. But it's not truth.
-
@zrzka Agree. I remember I had created a directory in Pythonista/iCloud for testing but I don't remember if I placed these files there but I'm sure I just opened patience.txt file only yesterday for testing this problem and that this file has never been in iCloud...
But I agree to stop spending time for this.
Thanks a lot for your time and your explanations -
@zrzka I just see now that patience.txt file appears (just from now) in "external files" in Pythonista file browser...
If I delete them, they are not in Pythonista trash but stay in Pythonista Files App.. -
@cvp that's correct behaviour. What you see in external files is kind of link to folders / files from another applications. When you delete it in Pythonista (items in external files), you're just removing links - basically saying - okay Pythonista, forget about this file. The file is not actually deleted. If you'd like to delete, you have to open another application which provides this file and delete it there. Also it shouldn't change recent file items listing, because the file was not deleted. Example:
- I have a file in Dropbox
- I open this file in Pythonista via external files - Open...
- File appears in external files and in the recent files
- When I swipe to delete in Pythonista, the file is only unlinked from Pythonista, but it still stays in the Dropbox application
- If I'd like to delete it for real, I have to open Dropbox application and delete the file here
That's the reason why the button has label REMOVE and not TRASH. This applies to the top level items in the external files section only.
Another example:
- I have a folder in Working Copy
- I open this folder in Pythonista via external files - Open...
- This folder is
blackmamba
for example - Now I tap on the
blackmamba
folder in external files , swipe to left on any file inside this folder and destructive button appears - This destructive button has title Trash, because it's not the top level item in external files and when you tap on it, file is actually deleted, even in the Working Copy
Behavior depends on the level in external files (nested or top level) and one should read button titles:
- Remove - Kind of unlink from Pythonista
- Trash - Real trash
-
@zrzka Thanks for this (very clear) explanation.
But, sincerely, I really don't understand in which other app resides my .txt files I see in this pop up... -
@cvp me neither. It can be a bug in iOS, in Pythonista or just some experimentation throw back. The only think I know (based on paths) is that one file is in This iPad and another one comes from any other application (not an iCloud file, path would be different).
-
@zrzka I've found from where these files come...
In Files App, you have (bottom left) a bouton "recents" and you get a list of recents files with their app.
These Pythonista files are recents for my Google Drive app because I've a kind of synchronisation between Pythonista and Google Drive.
I've written a script which scans my Pythonista files and, if modified since their last backup, sends them to my Google Drive account. -
@cvp so, not a bug and we finally know from where this file comes? :)
-
@zrzka Yes but why does Files App show these files in the Pythonista pop up because they reside in Google Drive...
-
@cvp because you did open them in Pythonista, Pythonista (script) manipulates with them, ... From the system point of view, it's recent item ... System has no clue if you did it manually (tapping) or by script, system has no clue that Pythonista is running scripts, ... Just guessing ...
-
@zrzka I don't think I open the Google file with Pythonista but I open the Pythonista file.
I agree they have the same name but if that is sufficient to present them as recent in the Pythonista pop up, I think it could be dangerous..Perhaps has IOS associated.txt, .json files with Pythonista app and foie this reason, it could present these kinds of files in the Pythonista pop Up?