hedgedoc
hedgedoc copied to clipboard
Upload multiple .md files by drag'n'dropping them on the explore page
Import all existing .md notes at once from local storage, instead of: one by one.
Not sure if this already exist (because it’s crucial for new comers), but have no idea how to achieve it.
I think this is a good idea, but could you point me in the direction of the one by one upload feature? As far as I can see we currently only have an upload history button (and it seems to me from a quick test that it does not include any hidden markdown-upload functionality, but I did not inspect the code for such a feature). In my understanding the way to upload .md files to ~codimd~ hedgedoc is with the CLI Tool currenlty. Or do I miss something @codimd/developers ?
In my understanding the way to upload .md files to ~codimd~ hedgedoc is with the CLI Tool currenlty
Yes, But right now, Hedgedoc only does it 1 file at a time, so my suggestion: It would be very useful for new comers (like me) that already have thousands of .md files in their computer to be able to import all their .md files/notes at once. I hope this makes sense.
And I could not install the cli, I followed the instructions but i was stuck at the command cd cli/bin
Are copying your .md files by hand in new pads or how are you importing them?
Are copying your .md files by hand in new pads
If you mean copy and paste the files, 1. I don't think that's a good practice, since they need to be registered in the database too. 2. I don't know the directory where I can copy them.
how are you importing them?
That's the problem, I don't know how to import more than a thousand of my .md notes, and that's why I created this issue, is to ask for a new feature that provides this functionality with one or few clicks in the frontend or even the cli, because importing all the files one after one is not convenient for new users that already have thousands of .md files already somewhere.
And sorry if I was confusing.
I understood you from the beginning, but I wanted to know how you import them one after another. Which buttons do you click? Please describe it in detail. I'm not aware that one by one importing is currently possible, but if it is, we should start with that workflow and extend it to make it possible to upload multiple files instead.
A thought for the new frontend: having a drag&drop event catching when someone drops files into CodiMD and throwing then against the API in order to create new notes from them could be an idea, right?
If I drop a file into a window I expect it to be uploaded as an attachment.
@DerMolly
I used Hackmd, and they provide importing notes one after one manually through the CLI, I found a workaround to import all my files using a Linux script, and looking at the Codimd's CLI, its Readme file says that I can "Create/import a new note" using the command codimd import <input_path> [note_id], even I still didn't use this command because I couldn't install the Codimd CLI, but I suppose it works, that's why I said: In Codimd we can import our files one after one manually but not all at once (bulk/batch), and that's why I proposed this feature to be added for the convenience of new users. And it would be really helpful if we can make it available on the frontend for people that doesn't know what a CLI is.
@SISheogorath
A thought for the new frontend: having a drag&drop event catching when someone drops files into CodiMD and throwing then against the API in order to create new notes from them could be an idea, right?
That would be a great idea.
@SuperSandro2000
If I drop a file into a window I expect it to be uploaded as an attachment.
I guess when I drop a file into an opened editor, I would expect it to be uploaded as an attachment, and if I drop it into the list view of all files/notes, I would expect it to be imported.
As this seems to have evolved into a frontend-centric issue, I moved it to the corresponding repo