mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Move src/app/keymaps to repo root
This commit is contained in:
parent
b6785d78e8
commit
45c11e6fd4
@ -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
|
||||
|
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user