mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
kill the tabs for now. make life easy
This commit is contained in:
parent
28843b75bb
commit
f4528a6d05
@ -56,9 +56,22 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#editor {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font: 18px Inconsolada, Monaco, Courier;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
var tabs = require('lib/tabs')
|
||||
tabs.show()
|
||||
require('lib/atomicity');
|
||||
</script>
|
||||
|
||||
</html>
|
||||
|
@ -9,6 +9,8 @@ _ = require 'vendor/underscore'
|
||||
$ = require 'vendor/jquery'
|
||||
{CoffeeScript} = require 'vendor/coffee-script'
|
||||
|
||||
Chrome.addPane 'main', '<div id="editor"></div>'
|
||||
|
||||
editor = ace.edit "editor"
|
||||
editor.setTheme require "ace/theme/twilight"
|
||||
JavaScriptMode = require("ace/mode/javascript").Mode
|
||||
@ -19,6 +21,11 @@ editor.getSession().setUseSoftTabs true
|
||||
editor.getSession().setTabSize 2
|
||||
editor.focus()
|
||||
|
||||
# fuuuuu, ui bug
|
||||
setTimeout ->
|
||||
editor.resize()
|
||||
, 50
|
||||
|
||||
if css = File.read "~/.atomicity/twilight.css"
|
||||
head = $('head')[0]
|
||||
style = document.createElement 'style'
|
||||
|
Loading…
Reference in New Issue
Block a user