mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
project draw is togglable Cmd-Ctrl-N
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user