Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 9dc3ce0

Browse files
committed
Reduced Debug commands
1 parent 6b619ac commit 9dc3ce0

File tree

4 files changed

+9
-29
lines changed

4 files changed

+9
-29
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Quick Start Guide enhanced
1111
#### Patches
1212
- Debug output
13+
- Available debug commands reduced
1314
- Search prompt
1415

1516

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ You will be prompted for a snippet title.
2424
*Name in menus:*
2525
> "Create snippet from selection"
2626
27+
*Predefined Hotkey:*
28+
> "Ctrl + Alt + O"
29+
2730

2831
##### **snippet-injector:insert**
2932
This command injects a snippet to the current marker position(s).
@@ -32,6 +35,9 @@ You will be prompted to choose a snippet from a list.
3235
*Name in menus:*
3336
> "Insert snippet"
3437
38+
*Predefined Hotkey:*
39+
> "Ctrl + Alt + I"
40+
3541

3642
##### **snippet-injector:delete**
3743
This command deletes a snippet from the local storage.
@@ -48,22 +54,6 @@ Debug informations are logged in Atom's console.
4854
*Please notice that this command is just available through command palette!*
4955

5056

51-
##### **snippet-injector:toggle-time-debug**
52-
This command toggles debugging of function durations.
53-
Debug informations are logged in Atom's console.
54-
55-
*Name in menus:*
56-
> "Toggle timing debug"
57-
58-
59-
##### **snippet-injector:toggle-object-debug**
60-
This command toggles debugging of the package state.
61-
Debug informations are logged in Atom's console.
62-
63-
*Name in menus:*
64-
> "Toggle object debug"
65-
66-
6757
---
6858

6959
### External Sources

lib/snippet-injector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default {
4343
'snippet-injector:create': () => this.create(),
4444
'snippet-injector:insert': () => this.insert(),
4545
'snippet-injector:delete': () => this.delete(),
46-
'snippet-injector:toggle-time-debug': () => this.debugTime(),
47-
'snippet-injector:toggle-object-debug': () => this.debugObjects(),
46+
// 'snippet-injector:toggle-time-debug': () => this.debugTime(),
47+
// 'snippet-injector:toggle-object-debug': () => this.debugObjects(),
4848
'snippet-injector:toggledebug': () => this.toggleDebug()
4949
}));
5050

menus/snippet-injector.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@
3939
{
4040
"label": "Delete Snippet",
4141
"command": "snippet-injector:delete"
42-
},
43-
{
44-
"type": "separator"
45-
},
46-
{
47-
"label": "Toggle timing debug",
48-
"command": "snippet-injector:toggle-time-debug"
49-
},
50-
{
51-
"label": "Toggle object debug",
52-
"command": "snippet-injector:toggle-object-debug"
5342
}
5443
]
5544
}

0 commit comments

Comments
 (0)