├── LICENSE
├── README.md
├── main.js
└── package.json
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Brackets Bootstrap Snippets#
2 |
3 | A [Brackets](http://brackets.io/) extension to add Bootstrap 3 HTML5 Snippets to your page using simple shortcut keys.
4 |
5 | ## Installation ##
6 | 1. Open the Brackets Extension Manager and search for "bootstrap".
7 | 2. Download straight from GitHub using [https://github.com/codeomnitrix/bootstrap-snippets/archive/master.zip](https://github.com/codeomnitrix/bootstrap-snippets/archive/master.zip)
8 |
9 | ## Directions ##
10 | * Ctrl-Shift-N > Create a Navigation toolbar
11 | * Ctrl-Shift-P > Create a Panel
12 | * Ctrl-Shift-M > Create a Modal
13 | * Ctrl-Shift-I > Create an input group
14 | * More Components coming soon
15 |
16 | This will make the relevant snippets at cursor location.
17 |
18 | ## License ##
19 | [MIT License](LICENSE)
20 |
--------------------------------------------------------------------------------
/main.js:
--------------------------------------------------------------------------------
1 | /*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
2 | /*global define, $, brackets, window */
3 |
4 | /** Simple extension that adds a "File > Hello World" menu item */
5 | define(function (require, exports, module) {
6 | "use strict";
7 | var keyBoardShortCutPanel = "Ctrl-Shift-P";
8 | var keyBoardShortCutModal = "Ctrl-Shift-M";
9 | var keyBoardShortCutNav = "Ctrl-Shift-N";
10 | var keyBoardShortCutInputGroup = "Ctrl-Shift-I";
11 | var keyBoardShortCutHelp = "Ctrl-`";
12 | var CommandManager = brackets.getModule("command/CommandManager");
13 | var kbManager = brackets.getModule("command/KeyBindingManager");
14 | var edManager = brackets.getModule("editor/EditorManager");
15 |
16 | //append a panel to current editor
17 | function appendPanel(){
18 | /*jQuery('