mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
project draw is togglable Cmd-Ctrl-N
This commit is contained in:
parent
06a46b1cb8
commit
1257e2bc32
@ -1,8 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<frameset cols="0%,100%" frameborder=no framespacing=0 border=0>
|
||||
<frame src="project.html">
|
||||
<frame src="tabs.html">
|
||||
<frameset cols="*" frameborder=no framespacing=0 border=0>
|
||||
<frame src="tabs.html" />
|
||||
</frameset>
|
||||
</html>
|
||||
|
@ -124,4 +124,7 @@ Chrome.bindKey 'fullscreen', 'Command-Shift-Return', (env) ->
|
||||
# this should go in coffee.coffee or something
|
||||
Chrome.bindKey 'consolelog', 'Ctrl-L', (env) ->
|
||||
env.editor.insert 'console.log ""'
|
||||
env.editor.navigateLeft()
|
||||
env.editor.navigateLeft()
|
||||
|
||||
Chrome.bindKey 'toggleProjectDrawer', 'Command-Ctrl-N', (env) ->
|
||||
Project.toggle()
|
||||
|
@ -133,6 +133,22 @@ Process =
|
||||
env: ->
|
||||
OSX.NSProcess.processInfo.environment()
|
||||
|
||||
# Need to rename and move stuff like this
|
||||
Project =
|
||||
toggle: ->
|
||||
frameset = top.document.getElementsByTagName("frameset")[0]
|
||||
if @showing
|
||||
frameset.removeChild(frameset.firstChild)
|
||||
frameset.setAttribute('cols', '*')
|
||||
else
|
||||
frame = document.createElement("frame")
|
||||
frame.src = 'project.html'
|
||||
frameset.insertBefore(frame, frameset.firstChild)
|
||||
frameset.setAttribute('cols', '25%, *')
|
||||
|
||||
@showing = not @showing
|
||||
|
||||
this.Chrome = Chrome
|
||||
this.File = File
|
||||
this.Dir = Dir
|
||||
this.Project = Project
|
||||
|
Loading…
Reference in New Issue
Block a user