Skip to content

Commit 44ac90e

Browse files
committed
Bug fixes and improvements for version 0.0.2
1 parent a282353 commit 44ac90e

File tree

8 files changed

+55
-2001
lines changed

8 files changed

+55
-2001
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
All notable changes to the "snipp" extension will be documented in this file.
3+
All notable changes to the "Snippet" extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

LICENSE.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Snippet visual studio code extension
2+
3+
Copyright (c) Devon Ray
4+
5+
All rights reserved.
6+
7+
MIT License
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ This plugin is still in beta, please create an issue or feature request if you n
2020

2121

2222
## Release Notes
23-
### 1.0.0
23+
### 0.0.2
24+
* Fixed issues with naming consistency
25+
* Added ability to click a Snipp to insert at current cursor location
26+
* Added Missing Icon for scss Snipps
2427

28+
### 0.0.1
2529
Initial release of Snippet
2630

2731
-----------------------------------------------------------------------------------------------------------

docker.json

-1,986
This file was deleted.

package.json

+27-13
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Snippet",
44
"description": "Extension for creating code and managing user defined code snippets",
55
"license": "SEE LICENSE IN LICENSE.md",
6-
"version": "0.0.1",
6+
"version": "0.0.2",
77
"publisher": "devonray",
88
"icon": "resources/logo.png",
99
"repository": {
@@ -58,22 +58,22 @@
5858
{
5959
"command": "extension.createSnipp",
6060
"when": "editorHasSelection",
61-
"group": "snippit"
61+
"group": "snippet"
6262
},
6363
{
6464
"command": "extension.insertSnipp",
65-
"group": "snippit",
66-
"title": "Insert Snipp"
65+
"group": "snippet",
66+
"title": "Insert snipp"
6767
}
6868
],
6969
"view/item/context": [
7070
{
7171
"command": "allSnipps.deleteEntry",
72-
"group": "snippit"
72+
"group": "snippet"
7373
},
7474
{
7575
"command": "allSnipps.insertEntry",
76-
"group": "snippit"
76+
"group": "snippet"
7777
}
7878
],
7979
"view/title": [
@@ -95,7 +95,7 @@
9595
"commands": [
9696
{
9797
"command": "extension.searchSnipps",
98-
"group": "snippit",
98+
"group": "snippet",
9999
"title": "Search Snipps",
100100
"icon": {
101101
"light": "resources/icons/search.svg",
@@ -104,12 +104,12 @@
104104
},
105105
{
106106
"command": "extension.insertSnipp",
107-
"group": "snippit",
108-
"title": "Insert Snipp"
107+
"group": "snippet",
108+
"title": "Insert snipp"
109109
},
110110
{
111111
"command": "extension.importSnipps",
112-
"group": "snippit",
112+
"group": "snippet",
113113
"title": "Import snipps",
114114
"icon": {
115115
"light": "resources/icons/import-snipps.svg",
@@ -118,8 +118,8 @@
118118
},
119119
{
120120
"command": "extension.createSnipp",
121-
"title": "Create Snip",
122-
"group": "snippit"
121+
"title": "Create snipp",
122+
"group": "snippet"
123123
},
124124
{
125125
"command": "allSnipps.refreshEntry",
@@ -162,7 +162,21 @@
162162
"name": "All"
163163
}
164164
]
165-
}
165+
},
166+
"keybindings": [
167+
{
168+
"command": "extension.insertSnipp",
169+
"key": "shift+i",
170+
"mac": "shift+i",
171+
"when": "editorTextFocus"
172+
},
173+
{
174+
"command": "extension.createSnipp",
175+
"key": "shift+c",
176+
"mac": "shift+c",
177+
"when": "editorHasSelection"
178+
}
179+
]
166180
},
167181
"homepage": "https://snippet.devonray.net",
168182
"scripts": {

resources/icons/folder-scss.svg

+1
Loading

resources/icons/scss.svg

+1
Loading

src/providers/SnippProvider.ts

+7
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,16 @@ export class SnippProvider
8888
);
8989
}
9090

91+
const snippcomm ={
92+
command: 'allSnipps.insertEntry',
93+
title: '',
94+
arguments: [element]
95+
};
96+
9197
return {
9298
label: isSnip ? element.name : element.name.toUpperCase(),
9399
iconPath: icn,
100+
command: isSnip ? snippcomm : undefined,
94101
collapsibleState: !isSnip
95102
? vscode.TreeItemCollapsibleState.Collapsed
96103
: undefined

0 commit comments

Comments
 (0)