First, create a new desktop entry:
# /usr/share/applications/subl-urlhandler.desktop
[Desktop Entry]
Version=1.0
copy stream: allocated memory: 294 559 250, object space profiler 20 341 328 | |
curl binding: allocated memory: 14 693 276, object space profiler 19 160 242 | |
curl cli: allocated memory: 17 176, object space profiler 3 916 812 | |
ruby net http: allocated memory: 302 107 159, object space profiler 15 602 074 |
function findClassesInStylesheets(classes) { | |
'use strict' | |
let regexClasses = classes.map(function (className) { | |
let re = new RegExp('\\.' + className) | |
console.log('created regexp', re) | |
return re | |
}) | |
var sheetCount = 0, |
/* | |
SublimeLinter settings | |
*/ | |
{ | |
"sublimelinter": "save-only", | |
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info. | |
// By deault, eval is allowed. | |
"jshint_options": | |
{ |
<snippet> | |
<content><![CDATA[ | |
/* globals define */ | |
define([${1:'dependency'}], function (${2:dependency}) { | |
'use strict'; | |
return ${3://exported value}; | |
}); | |
]]></content> |
<snippet> | |
<content><![CDATA[ | |
(function (${2:\$, }window, document, undefined) { | |
'use strict'; | |
${3://your code here} | |
})(${1:jQuery, }window, document); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>iffe-m</tabTrigger> |
<snippet> | |
<content><![CDATA[ | |
(function () { | |
${1://your code here} | |
})(); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>iffe</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> |
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"color_scheme": "Packages/User/SublimeLinter/Mac Classic (SL).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".byebug_history", | |
".svn", | |
".git", |
/* | |
SublimeLinter settings | |
*/ | |
{ | |
"sublimelinter": "save-only", | |
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info. | |
// By deault, eval is allowed. | |
"jshint_options": | |
{ |