Comments (9)
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.
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.
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.
@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.
@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.
@nathanlesage yes shure I can test it, but just at Monday because this bug was on my work pc.
from zettlr.
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.
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.
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:
- Open several root folders (obviously)
- 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)
- 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)
- Overview of invalid links HOT 1
- button to create a new file when a link does not exist yet
- Data disappear from table when saving HOT 3
- Ordered sublists/nested lists switching to a. b. c. and i. ii. iii. HOT 7
- Nested ordered lists continue from the previous numbering
- Current Import Workflow is Intransparent
- Canceled HOT 1
- [Enhancement] (Option to) hide markup annotations for headers / titles HOT 2
- Light mode has too little contrast between text and background in the panes. HOT 3
- Changing the file filtering logic for match-query to AND instead of OR
- [develop] Replace the current YAML frontmatter parser with `parseMixed`
- Youtube embed HOT 6
- Impossible to export files on Flatpak builds HOT 1
- Strikethrough formatting does not work in a tables
- Name auto-complete (add display name option) does not work when linking with ID HOT 3
- Links to internal pages not recognized as internal when in markdown style
- Some files do not show * when edited and do not save or autosave, no warning when renaming that buffer data will be lost HOT 21
- Display modified/not-saved status (asterisk in usual editor) in Distraction-Free Mode
- Pandoc export fail when use wikilinks_title_after_pipe or wikilinks_title_before_pipe HOT 3
- Toggle sidebar shortcut not working 3.1.0-beta.2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zettlr.