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

Add the ability to create a new file for each note #22

Open
Pfedj opened this issue Dec 9, 2019 · 2 comments
Open

Add the ability to create a new file for each note #22

Pfedj opened this issue Dec 9, 2019 · 2 comments

Comments

@Pfedj
Copy link

Pfedj commented Dec 9, 2019

Hi!
I would like to use deft or notdeft for notes management so that each file matches one note. To add flag in call server/grasp_server.py --multiple-files in command line and to generate a new file while creating every note.

@karlicoss
Copy link
Owner

Hi!
Wondering, how would you choose the file name?

If you wanna play with it and try it out you can do it fairly easy by modifying code here
I guess instead of path=capture_path,, you'd want to generate some name based on url/title/etc? You'd still need to pass some base directory too, I'd imagine.

@Pfedj
Copy link
Author

Pfedj commented Dec 10, 2019

I assume that the current time can be used as file names.
Here are my changes:
https://gist.github.com/Pfedj/83b951f70ee09201535d3c7e8c81eca3
I split the path into directory and filename and added the flag
'-m' , '--multiple-files. When there is this flag the notes are generated in their own files.
This code works using the IDE with command line options, but for some reason it doesn’t work if I run it as an external script python grasp_server.py.

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

2 participants