BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Bug drag file to Markdown file #3629

Open Hint787Jkk opened 3 years ago

Hint787Jkk commented 3 years ago

Current behavior

I create a snippet (not markdown snippet). There you can also create say >>test.md<< it recogrdnise recognise its a markdown snippet and the preview is also generated and it works also just like the markdown snippet. When i attach a file say *.jpg file to this test.md snippet it does not work nothing gets attached. If i rename >>>test.md<< to >>test.yml<< i can attach jpg file by drag an drop a jpg file and if i rename it to >>test.md<< again it seems to work and the file ist shown in the markdown preview. The problem is that attached file is getting deleted after about 3 or 5 minutes its not there anymore.

Expected behavior

The problem is that attached file atteched like described above is getting deleted after about 3 or 5 minutes its not there anymore. The attached file should be there even if i rename the file. The same problem that the file gets deleted happens when i cut the attached file reference from one snippet to somewhere else to other snippet no matter what type of snippet it is it gets deleted after some time (5 min).

When i create a snippet not a markdown and for some reason i need additional test.md file there and i attach a jpg file to it, it should not be deleted. Also if i cut attached file reference from one to other snippet it should also not be deleted.

Steps to reproduce

-create a snippet (not markdown) -create a test.md file (set in the options 'preview with right click' otherwise you will not be able to attach a file) -try to drag and drop a jpg file to this test.md snippet it would not work -rename test.md file to test.yml file and you will be able to attach the jpg file -rename test.yml to test.md again and you will see the attached file in the preview Problem: The attached file in test.md will be deleted i think its imlemented that attached file must be always in that attached snippet otherwise it will be deleted renaming a snippet type is not the original snippet so it gets deleted ok but if i create a test.md in snippet mode then i should be able to attach files.

Environment

I have the version 0.16.0. and i use it localy. Windows 7

Flexo013 commented 3 years ago

Is there a specific reason you are you are using snippet notes instead of markdown notes? Also could you try if this exact behavior also breaks with a markdown note?

Hint787Jkk commented 3 years ago

I like this app its great and i like to use it every day.

The are four reasons why i would exepct to attach images by drag and drop to a "snippet note"

How would i solve it:

if you need some more information dont hasitate to contact me.

PS: i tested it in markdown file a pic that i dragged there was deleted too but i was not able to reproduce it again. I would check the proccess of attaching files to a note something makes the files delete.

Flexo013 commented 3 years ago

I see, I see.

Many of your problems feel like they would also be solved by having some extra structuring in regular markdown notes, something like subfolders. Allowing you to group related files easier.

Maybe that would be a good in between (and remove the need for snippet notes, because both would be functionally the same).

Hint787Jkk commented 3 years ago

well i do not want to miss the opportunity to make snippet notes. Why not just making a note without the choosing (snippet or makrdown file) you create just a note and then in the second step you define the filetype by the file suffix test.md for markdown file test.php for php snippet.

I would leave it just like it realized now to have the opportunity to add multiple files to a note (to make subfolders would be to mutch i think in this case i would make a separate note) i add 3 or 4 files maximum to a note to make folders would be overorganized in this case it would be better no make a separate note but its good to have the opportunity to add files to a note. The only thing that is not working when you define markdown files in snippets is attaching images.

Making snippets in markdown file is not fast enough for me you have to make these >>```php ````<< and close it again for every single snippet i dont wont to make extra formatting work for a snippet i want to say it just by defining a file suffix

here is a tool which realized it like i suggest to you and its really good: >>>https://www.cacher.io/<<< there u can add files and define every type of files by file suffix