Created
April 17, 2017 08:53
-
-
Save t9md/1e97b987d1a6303a28252e7047f9e926 to your computer and use it in GitHub Desktop.
vim-load-time-with-editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vmpFiles = [ | |
"base.coffee" | |
"input.coffee" | |
"occurrence-manager.coffee" | |
"search-input.coffee" | |
"blockwise-selection.coffee" | |
"introspection.coffee" | |
"operation-stack.coffee" | |
"search-model.coffee" | |
"cursor-style-manager.coffee" | |
"main.coffee" | |
"operator-insert.coffee" | |
"select-list.coffee" | |
"developer.coffee" | |
"mark-manager.coffee" | |
"operator-transform-string.coffee" | |
"selection-wrapper.coffee" | |
"errors.coffee" | |
"misc-command.coffee" | |
"operator.coffee" | |
"settings.coffee" | |
"flash-manager.coffee" | |
"mode-manager.coffee" | |
"pair-finder.coffee" | |
"status-bar-manager.coffee" | |
"global-state.coffee" | |
"motion-search.coffee" | |
"persistent-selection-manager.coffee" | |
"text-object.coffee" | |
"highlight-search-manager.coffee" | |
"motion.coffee" | |
"register-manager.coffee" | |
"utils.coffee" | |
"hover-manager.coffee" | |
"mutation-manager.coffee" | |
"search-history-manager.coffee" | |
"vim-state.coffee" | |
] | |
openFilesSequencially = (files) -> | |
if files.length | |
file = files.shift() | |
filePath = atom.project.resolvePath("lib/" + file) | |
# console.log filePath | |
atom.workspace.open(filePath).then -> | |
openFilesSequencially(files) | |
fun = (arg) -> | |
openFilesSequencially(vmpFiles) | |
disposable?.dispose() | |
disposable = atom.commands.add 'atom-workspace', | |
'check-up': -> fun('up') | |
'check-down': -> fun('down') | |
'check-right': -> fun('right') | |
'check-left': -> fun('left') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment