editor will be a plugin, for now force keybinding

creation
This commit is contained in:
Corey Johnson
2011-09-22 17:29:03 -07:00
parent ba4dae531c
commit dda91e39f2

View File

@@ -4,6 +4,8 @@ File = require 'fs'
Chrome = require 'chrome'
Pane = require 'pane'
{bindKey} = require 'keybinder'
ace = require 'ace/ace'
{EditSession} = require 'ace/edit_session'
@@ -37,6 +39,9 @@ class Editor extends Pane
constructor: (args...) ->
super(args...)
for shortcut, method of @keymap()
bindKey @, shortcut, method
@ace = ace.edit "editor"
@ace.setTheme require "ace/theme/twilight"
@ace.getSession().setUseSoftTabs true