Move src/app/keymaps to repo root

This commit is contained in:
Kevin Sawicki 2013-08-14 10:43:57 -07:00
parent b6785d78e8
commit 45c11e6fd4
8 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ pathWatcher = require 'pathwatcher'
configDirPath = fsUtils.absolute("~/.atom")
nodeModulesDirPath = path.join(resourcePath, "node_modules")
bundledThemesDirPath = path.join(resourcePath, "themes")
bundledKeymapsDirPath = path.join(resourcePath, "keymaps")
userThemesDirPath = path.join(configDirPath, "themes")
userPackagesDirPath = path.join(configDirPath, "packages")
userPackageDirPaths = [userPackagesDirPath]
@ -25,6 +26,7 @@ class Config
configDirPath: configDirPath
themeDirPaths: [userThemesDirPath, bundledThemesDirPath]
bundledPackageDirPaths: [nodeModulesDirPath]
bundledKeymapsDirPath: bundledKeymapsDirPath
nodeModulesDirPath: nodeModulesDirPath
packageDirPaths: _.clone(userPackageDirPaths)
userPackageDirPaths: userPackageDirPaths

View File

@ -36,7 +36,7 @@ class Keymap
$(document).command 'toggle-dev-tools', => atom.toggleDevTools()
loadBundledKeymaps: ->
@loadDirectory(fsUtils.resolveOnLoadPath('keymaps'))
@loadDirectory(config.bundledKeymapsDirPath)
loadUserKeymaps: ->
@loadDirectory(path.join(config.configDirPath, 'keymaps'))