sawhney17 / logseq-smartblocks

MIT License
171 stars 12 forks source link

FR: Add file import #49

Open youainti opened 1 year ago

youainti commented 1 year ago

When using a smartblock button it would be very helpful to be able to add a file in the dialog box by adding a field such as <%addFile: fileVar%>. I imagine this would open the current "/upload an asset" dialog and store the path as a variable for later use.

One would then be able to do something like <%internalFile: fileVar%> to insert a file using ![text](link), wheras something like <%externalFile: fileVar%> would use [text](link).