/hlf-tmbundles

:package: Customized TextMate-ish bundles / packages

Primary LanguagePythonOtherNOASSERTION

SublimeText Package Overrides

I've decided to switch to VS Code and adopt a more minimal workflow philosophy. It's been a fun decade or so, TM & ST. -- PW


These changesets improve upon existing functionality. I use and improve them myself every day. Previews rendered in BlackboardImproved theme.

CSS Package

  • Marks boilerplate for dimming
  • Generally up-to-date CSS syntax highlighting (CSS4)
  • Compatible with ST2

JavaScript Package

Language Patterns & Highlighting

See test file for more examples. Main features:

Generally up-to-date JS syntax highlighting (ES6, ES7). Compatible with ST2.

image

let fives;
let odds = evens.map(v => v + 1);
nums.forEach((v) => {
  if (v % 5 === 0) { fives.push(v); }
});

class SkinnedMesh extends THREE.Mesh {
  constructor(geometry, materials) {
    super(geometry, materials);
    //...
  }
  get type() { /*...*/ }
  static defaultMatrix() {
    return new THREE.Matrix4();
  }
}

Accounts for JS boilerplate language. Assumes you are experienced with JS and are looking for a bundle that makes it less painful to write JS all day, in lieu of CoffeeScript (RIP).

image

var foo, bar, baz;
var obj = {};
obj.method = function func() {};

Assumes you follow conventions with naming instances: element elem el. Assumes you care about at least viewing the DOM api with proper highlighting.

image

var element = elem = el = document.createElement('div');
el.addEventListener('click', handleEvent);

var event = evt = e = new CustomEvent('custom');
event.stopPropagation();