Comparar commits

..

5 Commits

Autor SHA1 Mensagem Data
Kevin Sawicki 12580bce83 Guard against missing file path in getScore() 2013-07-10 08:54:15 -07:00
Cheng Zhao 753b11cf15 Register Atom to handle atom:// scheme URLs. 2013-07-10 18:57:26 +08:00
Kevin Sawicki 0fee962faa Mention j/k support 2013-07-09 09:22:35 -07:00
Kevin Sawicki ed1f51b987 Map k/j to up/down in archive-view 2013-07-08 18:57:58 -07:00
Kevin Sawicki f1bdcaedc1 Support moving up/down in tree view with k/j keys 2013-07-08 17:06:16 -07:00
7 arquivos alterados com 36 adições e 3 exclusões
+4
Ver Arquivo
@@ -1,3 +1,7 @@
* Fixed: Error selecting a grammar for an untitled editor
* Added: j/k now can be used to navigate the tree view and archive editor
* Fixed: Atom can now be launched when ~/.atom/config.cson doesn't exist
* Added: Initial collaboration sessions
* Fixed: Empty lines being deleted via uppercase/downcase command
+11
Ver Arquivo
@@ -36,6 +36,17 @@
<string>speakeasy.pem</string>
<key>SUScheduledCheckInterval</key>
<string>3600</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>atom</string>
</array>
<key>CFBundleURLName</key>
<string>Atom Shared Session Protocol</string>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
+6
Ver Arquivo
@@ -75,6 +75,12 @@ describe "the `syntax` global", ->
expect(syntax.selectGrammar('more.test', '')).toBe grammar1
describe "when there is no file path", ->
it "does not throw an exception (regression)", ->
expect(-> syntax.selectGrammar(null, '#!/usr/bin/ruby')).not.toThrow()
expect(-> syntax.selectGrammar(null, '')).not.toThrow()
expect(-> syntax.selectGrammar(null, null)).not.toThrow()
describe ".removeGrammar(grammar)", ->
it "removes the grammar, so it won't be returned by selectGrammar", ->
grammar = syntax.selectGrammar('foo.js')
+2 -3
Ver Arquivo
@@ -74,11 +74,10 @@ class TextMateGrammar
getScore: (filePath, contents) ->
contents = fsUtils.read(filePath) if not contents? and fsUtils.isFileSync(filePath)
if syntax.grammarOverrideForPath(filePath) is @scopeName
2 + filePath.length
2 + (filePath?.length ? 0)
else if @matchesContents(contents)
1 + filePath.length
1 + (filePath?.length ? 0)
else
@getPathScore(filePath)
+8
Ver Arquivo
@@ -7,6 +7,7 @@ fs = require 'fs'
path = require 'path'
optimist = require 'optimist'
nslog = require 'nslog'
dialog = require 'dialog'
_ = require 'underscore'
console.log = (args...) ->
@@ -21,6 +22,13 @@ delegate.browserMainParts.preMainMessageLoopRun = ->
event.preventDefault()
args.pathsToOpen.push(filePath)
app.on 'open-url', (event, url) =>
event.preventDefault()
dialog.showMessageBox
message: 'Atom opened with URL'
detail: url
buttons: ['OK']
app.on 'open-file', addPathToOpen
app.on 'will-finish-launching', ->
@@ -0,0 +1,3 @@
'.archive-view':
'k': 'core:move-up'
'j': 'core:move-down'
@@ -12,6 +12,8 @@
'a': 'tree-view:add'
'delete': 'tree-view:remove'
'backspace': 'tree-view:remove'
'k': 'core:move-up'
'j': 'core:move-down'
'.tree-view-dialog .mini.editor':
'enter': 'core:confirm'