Skip to content

Commit 8228713

Browse files
committed
Merge pull request jerone#42 from r-a-y/patch-1
✨ (Github Comment Enhancer) Added tab character as a snippet;
2 parents dead56e + 1e866bd commit 8228713

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@
164164
}
165165
},
166166

167+
"function-snippets-tab": {
168+
exec: function(txt, selText, commentForm, next) {
169+
next("\t");
170+
}
171+
},
167172
"function-snippets-useragent": {
168173
exec: function(txt, selText, commentForm, next) {
169174
next("`" + navigator.userAgent + "`");
@@ -280,6 +285,9 @@
280285
' </div>' +
281286
' <div class="select-menu-list" style="overflow:visible;">' +
282287
' <div data-filterable-for="context-snippets-filter-field">' +
288+
' <a href="#" id="function-snippets-tab" class="function-button select-menu-item js-navigation-item tooltipped tooltipped-w" aria-label="Add tab character" style="table-layout:initial;">' +
289+
' <span class="select-menu-item-text js-select-button-text">Add tab character</span>' +
290+
' </a>' +
283291
' <a href="#" id="function-snippets-useragent" class="function-button select-menu-item js-navigation-item tooltipped tooltipped-w" aria-label="Add UserAgent" style="table-layout:initial;">' +
284292
' <span class="select-menu-item-text js-select-button-text">Add UserAgent</span>' +
285293
' </a>' +

0 commit comments

Comments
 (0)