-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deleted files from 'Recents' list #174
Comments
The motivating issue is that your recents list gets cluttered up by tmp notebooks right? (some loose thoughts:) I was thinking: Pluto doesn't actually need a file on disk to work - the state is kept in memory. So temporary notebooks and new notebooks could start out with no file, and invite the user to save it somewhere. This also solves #97 and some feedback that we got that it is unclear how to save a notebook. They are right: when you open a sample notebook, you are first greeted with the Pluto logo, and then some OS magic spell words that don't mean anything to most people, even if you are familiar with paths and file systems. What the technowords don't communicate is: "I am the current filename and you can change me". Part of this is that software usually does not save somewhere until you explicitly do so. Although a common trend is to always save as "Untitled" (google drive) or "FunkyApricotDolphin". One reason I can come up with to always save notebooks is for backups in case Pluto breaks. But that doesnt seem to happen anymore, especially not with quick-and-dirty notebooks that you would not care enough for to save them yourself. The other one is for user error: if you close the Pluto server you might not realise that you had an unsaved notebook open. With the current What do you think @karlwessel ? |
I really like that notebooks are stored on file and not in memory, exactly because of the reasons you described. Also, the /tmp folder is ideal for storing "untitled" notebooks, since it assures that no important directory gets cluttered with sample and test notebooks. If I just want to test something in a notebook I know /tmp will clean up after me and if the tests are worthy I can still decide to give them some proper location. This issue is only about the fact that while tmp automatically cleans up my mess of notebooks, Pluto does not (yet). Regarding the "users are greated with some OS-Magic" issue. Can't Pluto just display only the notebook name without extension and path? And if you click on it it is expanded to the full path for the techy people and for the non techy people there is the "rename" button which could be renamed to "save as" (a bit like for jupyter-notebooks). And I really like the "FunkyApricotDolphin" approach to naming new/temporary notebooks. That way there is a nice name to display even if the notebook hasn't been saved yet and it is easier to find/remember than "YhZGQnwe.jl" in the temporary folder. |
One thing we could do is keep the functionality the same, but instead of the initial /tmp path, we show "Save notebook...", and when you click on it, it defaults to: The only thing we miss is that users don't know where to look for backups, but maybe we can print things to the terminal like:
and
to teach users that Pluto keeps backups there. What do you think? Displaying a shorter path is #169, let's talk more there |
That sounds good! Does anything speak against already naming the temporary file with some random word combination like |
Yes that makes sense! Perhaps you can write this in a PR? You just replace I wrote a list of cute words for another project, if you need inspiration :) Maybe nice to split it into adjectives and nouns? |
Can do that, together with the other PRs I promised, when the semester ends. |
okay :) |
@lukavdplas suggested to use the creation date as filename for temporary files - that way they still make some sense when you see them in your recents. |
I went with the cute names after all. When the notebook lives inside the temp dir: When you click on "Save notebook..." you get a suggested filename, and "Rename" is "Save" instead: |
I like the new default note book names!
|
Sure! But your point was valid - notebooks stick around forever in the recents list, there is no way to delete them automatically/manually. |
Yep. I also had a quick glance to see whether I could fix this by only showing notebooks that exist or aren't located in the |
Yep! And they might not be the same computer |
Notebooks are no longer stored in temporary storage :) As for removing deleted files, hmmmm i'm not sure. Not a priority |
Continued in #877 |
To keep the list of recent notebooks clean it would be nice if Pluto could purge the list of recent notebooks from notebooks that are in the temporary folder and don't exist anymore.
The text was updated successfully, but these errors were encountered: