You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
Currently the Export JSON button exports the snippet in .json format and not really in the actual snippet filetype. The expoerted snippet json does contain the actual snippet however, it also holds the metadata such as created_date, updated_date, name, tags etc.
Demonstration
This is what an exported snippet looks like:
I know it is pulled from the snippets.json file:
Expected Behavior
Upon exporting a snippet, as per #46 (comment), only the snippet content (withput \n, metadata) should be exported as the snippet file name along with snippet file type.
e.g. Here a snippet name is git-issue-draft.md and filetype is markdown, thus the snippet should be exported as git-issue-draft.md filename.
For multi-file snippets, user should be able to export desired files only.
I first intended the export feature is for transferring the exported snippet to other computer and import it using the import feature. I didn't make the export snippet content feature because I think people can always click the copy button.
I first intended the export feature is for transferring the exported snippet to other computer and import it using the import feature. I didn't make the export snippet content feature because I think people can always click the copy button.
Copy button is anytime useful. No doubt about that!
One may have his/her e.g. utility class/library(s) that they use in almost every project. Copying the snippet content, creating a new file and then pasting into it is somewhat inconvenient.
There is a middle way which can be best of both worlds:
Having a setting in (Interface section) which user can toggle to choose between the current export behavior or the newer proposed one may be a great help!
e.g.
[x] Show snippet update time
[ ] Show snippet copy count
👉 [x] Export the snippet content only (Export metadata also if unchecked)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Behavior
Currently the Export JSON button exports the snippet in .json format and not really in the actual snippet filetype. The expoerted snippet json does contain the actual snippet however, it also holds the metadata such as
created_date
,updated_date
,name
,tags
etc.Demonstration
This is what an exported snippet looks like:
I know it is pulled from the snippets.json file:
Expected Behavior
Upon exporting a snippet, as per #46 (comment), only the snippet content (withput \n, metadata) should be exported as the snippet file name along with snippet file type.
e.g. Here a snippet name is git-issue-draft.md and filetype is markdown, thus the snippet should be exported as git-issue-draft.md filename.
For multi-file snippets, user should be able to export desired files only.
System Info
References
#46 (comment) and #46 (comment)
The text was updated successfully, but these errors were encountered: