Skip to content

Instantly share code, notes, and snippets.

View griiettner's full-sized avatar

Paulo Griiettner griiettner

View GitHub Profile
@griiettner
griiettner / user.keymap
Last active August 4, 2016 22:06 — forked from tonsky/user.keymap
LightTable keymap of Sublime shortcuts
[
[:app "cmd-k-cmd-b" :workspace.show]
[:app "ctrl-`" :toggle-console]
[:editor "alt-w" :editor.watch.watch-selection]
[:editor "alt-shift-w" :editor.watch.unwatch]
[:editor "pmeta-/" :toggle-comment-selection]
[:editor "pmeta-/" :toggle-comment-selection]
[:editor "ctrl-shift-up" :editor.sublime.selectLinesUpward]
[:editor "ctrl-shift-down" :editor.sublime.selectLinesDownward]
[:editor "pmeta-d" :editor.sublime.selectNextOccurrence]
// SmoothScroll for websites v1.2.1
// Licensed under the terms of the MIT license.
// People involved
// - Balazs Galambosi (maintainer)
// - Michael Herf (Pulse Algorithm)
(function(){
// Scroll Variables (tweakable)

Sublime Text 2 - Useful Shortcuts

*Tested in Windows 8

Open/Goto


  • ctrl+p: go to anything
  • ctrl+t: go to file
  • ctrl+ctrl+p: go to project
// Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
var metas = document.getElementsByTagName('meta');
var i;
if (navigator.userAgent.match(/iPhone/i)) {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
@griiettner
griiettner / gist:3981956
Created October 30, 2012 18:10
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after