Add the ability to create a new file for each note
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.
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.
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.