11# Atom Snippet Injector
22** An easy but powerful snippet management tool for Atom editor.**
3+
34This atom package provides a JSON based snippet management.
45
56* But why use this package* you ask?
67
78Because you can reach every feature in more or less three steps.
89
910It's easy and fast so you don't have to struggle with difficult UI's or file syntaxes or even worse, writing the snippets manually.
10- Check out the [ Quick Start Guide] ( HOWTO.md#examples ) for more instructions on how to use this package.
11+ Check out the [ Quick Start Guide] ( HOWTO.md#using-the-snippet-injector ) for short instructions on how to use this package.
1112Happy Coding :)
1213
1314---
1415
1516## Reference
1617
17- #### Commands
18+ ### Commands
1819The following commands are registered by Snippet Injector and can be accessed via the command palette.
1920If stated, the commands can also be called through menus or via hotkey.
2021
21- ##### ** snippet-injector: create **
22+ #### ** snippet-injector: create **
2223This command creates a new snippet from the current selection in the current editor.
2324You will be prompted for a snippet title.
2425
@@ -30,7 +31,7 @@ You will be prompted for a snippet title.
3031
3132---
3233
33- ##### ** snippet-injector: update **
34+ #### ** snippet-injector: update **
3435This command updates an existing snippet's content to the current selection in the current editor.
3536You will be prompted for choosing an existing snippet.
3637
@@ -39,7 +40,7 @@ You will be prompted for choosing an existing snippet.
3940
4041---
4142
42- ##### ** snippet-injector: insert **
43+ #### ** snippet-injector: insert **
4344This command injects a snippet to the current marker position(s).
4445You will be prompted to choose a snippet from a list.
4546
@@ -51,7 +52,7 @@ You will be prompted to choose a snippet from a list.
5152
5253---
5354
54- ##### ** snippet-injector: delete **
55+ #### ** snippet-injector: delete **
5556This command deletes a snippet from the local storage.
5657You will be prompted for the snippet name to delete.
5758
@@ -60,12 +61,44 @@ You will be prompted for the snippet name to delete.
6061
6162---
6263
63- ##### ** snippet-injector: toggledebug **
64+ #### ** snippet-injector: toggledebug **
6465This command toggles all debugging options for the package.
6566Debug informations are logged in Atom's console.
6667
6768* Please notice that this command is just available through command palette!*
6869
70+ ---
71+
72+ #### ** snippet-injector: import **
73+ This command imports previously exported data from an importable file format.
74+ The format is recognized automatically, the contained data gets parsed
75+ and the resulting snippets will be stored simultaneously.
76+
77+ Since this command is part of the [ IMEX module] ( HOWTO.md#using-the-imex-module ) , I recommend usage via main menu.
78+
79+ * Name in menus:*
80+ > "Import Snippets"
81+
82+ ---
83+
84+ #### ** snippet-injector: export-to- ...**
85+ This command exports the local storage in the given file format.
86+ All snippets get parsed, based on the specific configuration and then are written into a user chosen file.
87+
88+ Since this command is part of the [ IMEX module] ( HOWTO.md#using-the-imex-module ) , I recommend usage via main menu.
89+
90+ ###### available formats:
91+
92+ | Format | Extension | Command | Importable | additional Infos |
93+ | ---------:| -----------| --------------------------------| :----------:| --------------------------------------------|
94+ | CSV | .csv | snippet-injector: export-to-csv | yes | Files may look untidy, use it as recovery |
95+ | Markdown | .md | snippet-injector: export-to-md | no | Human-readable, beautified |
96+
97+ * Name in menus:*
98+ > "Export Snippets -> ..."
99+
100+
101+ ---
69102
70103---
71104
0 commit comments