Skip to content
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

Bookmark files #19

Closed
technicaltitch opened this issue Oct 23, 2017 · 5 comments
Closed

Bookmark files #19

technicaltitch opened this issue Oct 23, 2017 · 5 comments

Comments

@technicaltitch
Copy link

Would it be possible to bookmark files, eg, have the local file path as a URL parameter or fragment and load that file on opening? I think it'd be my default Word processor if so.

@josephernest
Copy link
Owner

josephernest commented Oct 23, 2017

This would be great indeed @technicaltitch! But, as for as I know, for security reasons, it's a big thing that Javascript has no rights to access the local filesystem (if it could, it would allow a malicious website to access/delete files on your computer!). So I don't think this is possible.

A solution would be to host the files in the cloud (in a transparent way for the user), like most web services do (GoogleDocs, pastebin, jsfiddle, etc.). Would you use that?

@technicaltitch
Copy link
Author

Thanks hugely, I hadn't thought about that. Personally I want to use this offline as I live somewhere where internet access is often blocked, so something like LocalStorage, but I'm probably not a common use case.

@Steve2955
Copy link
Contributor

Steve2955 commented Oct 23, 2017

@josephernest @technicaltitch Another solution to this problem(and that's also something I thought about already) is 'porting' the whole project over to Electron. Of course it would be less lightweight but you can gain access to the filesystem and a whole lot else.

@technicaltitch
Copy link
Author

I wouldn't personally second that - part of the reason I like this project so much is it's simplicity - been using VS Code and don't like the CPU churn, my browser's open 24x7 anyway.

@josephernest
Copy link
Owner

Indeed Electron could be a solution for a standalone version of Writing, but there's maybe already hundreds of standalone markdown editors, so I don't know if it's worth porting it?

I close this issue for now, as there's no real solution to access the local filesystem with JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants