Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@docsteveharris
Created June 7, 2014 21:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save docsteveharris/980ec95a28781036d32b to your computer and use it in GitHub Desktop.
Save docsteveharris/980ec95a28781036d32b to your computer and use it in GitHub Desktop.
FoldingText keybindings to focus in or out by a level
// Log
// ===
// 140607 - cloned from demo keybindings.ftplugin
define(function(require, exports, module) {
'use strict';
var Extensions = require('ft/core/extensions').Extensions;
Extensions.addInit(function (editor) {
editor.addKeyMap({
'Shift-Ctrl-[' : 'focusOut',
'Shift-Ctrl-]' : 'focusIn'
});
}, Extensions.PriorityLast);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment