Coder Social home page Coder Social logo

Comments (9)

damien122 avatar damien122 commented on May 17, 2024

Hi,
IMHO:
how about to show small window on first startup to let the user define the "Zettlr home" directory. This should be an empty directory only for Zettlr and could be also stored in an OneDrive or Google Drive synced folder, to keep the files backuped.
Of cource such a "Zettlr home" directory could be not empty and could also lead to the same bug, but this could be catched with some user hints.
Also this path could be changeable in the Zettlr settings dialog for later changes.
This would be an easy solution and lead to more usability.

from zettlr.

nathanlesage avatar nathanlesage commented on May 17, 2024

I see where you are going to, but maybe an easier idea for the people (nowadays, everybody expects apps to ask as little questions as possible, and somehow I think it's okay for this specific use case):

Instead of always defaulting to the complete Documents folder, which may be littered with files, why not use the approach some other apps are also using: Simply fallback to a new zettlr-files-Folder in the User's Documents directory? This would ensure that it's empty on first startup, making it less error-prone. And on subsequent starts, because if a folder only consists of folders and markdown files, Zettlr will be able to handle it (I believe nobody on this planet has more than 20.000 markdown files in a single root directory).

I would think that this is a good compromise between comfortability, ease of implementation and security.

from zettlr.

damien122 avatar damien122 commented on May 17, 2024

yes it sounds good to create a new folder in documents folder only for zettlr. But then it should be possible to add more root folder or change this folder.

from zettlr.

nathanlesage avatar nathanlesage commented on May 17, 2024

@damien122 You can always change the root folder, by pressing Ctrl+O, the first toolbar button or selecting the appropriate option from the menu.

Concerning multiple root folders, see issue #3

Another friend from me has suggested to simply ignore dotted folders, as they are dotted for some reason, namely that they don't contain any data of importance for the purposes of Zettlr.

I think I will go and work on this the next days, so that we can at least sleep safe again :D

from zettlr.

nathanlesage avatar nathanlesage commented on May 17, 2024

@damien122 Would you like to test the current develop branch of Zettlr again against your Documents directory to check whether or not this issue still exists?

Also, I'm open for suggestions as to which kinds of directories (except the already excluded Dot-directories and *.app-directories on macOS) should be added to the exclusion list by default!

from zettlr.

damien122 avatar damien122 commented on May 17, 2024

@nathanlesage yes shure I can test it, but just at Monday because this bug was on my work pc.

from zettlr.

nathanlesage avatar nathanlesage commented on May 17, 2024

Alright, thanks a lot! :)

(Oh, and please beware: I just started working on the Autosave/Revert-feature mentioned in #7, it may be that there are some unrelated errors, but they should be pretty obvious — I'm just telling this because I don't know whether or not I can manage to completely implement the feature until monday, so please don't be surprised! And yes, for the next features I'll create additional branches!)

from zettlr.

damien122 avatar damien122 commented on May 17, 2024

Hi @nathanlesage,

I have testet the dev. branch and it works fine. No crashes any more. But what I don't like is, that my full Documents folder is parsed and showen in the navigation pannel. With a lot of empty folders. Or with stuff which is not a "note" like my ssh key or such stuff.
I think it would be better to create an empty folder just for zettlr at first startup and use this as home folder.

Regards,
damien122

from zettlr.

nathanlesage avatar nathanlesage commented on May 17, 2024

Hey @damien122!

Thanks for testing this out! So now I'll be closing this issue, because the other thing you've mentioned (to not completely parse the documents folder) can easily be resolved through the implementation of issue #3. Because, if I enable Zettlr to hold multiple root folders, I can solve several issues at once:

  1. Open several root folders (obviously)
  2. Open no folder on first startup at all (e.g. simply present the user with a little plus sign or something like that to indicate that he/she can begin adding stuff)
  3. Also open single files. This would then enable the app to register itself as handler for *.md-files, so that you can double click on those and open single files without parsing a whole folder.

This will take some time, but I think it'll improve the app experience a lot!

from zettlr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.