santip / layout-manager Goto Github PK
View Code? Open in Web Editor NEWLayout Manager Package for Atom Editor
Home Page: https://atom.io/packages/layout-manager
License: MIT License
Layout Manager Package for Atom Editor
Home Page: https://atom.io/packages/layout-manager
License: MIT License
[Enter steps to reproduce below:]
Atom Version: 0.192.0
System: Mac OS X 10.10.2
Thrown From: layout-manager package, v0.2.3
Uncaught TypeError: Cannot read property 'split' of undefined
At /Users/gyo/Dropbox/Apps/dot_atom/packages/layout-manager/lib/layout-manager.coffee:79
TypeError: Cannot read property 'split' of undefined
at Object.module.exports.getFlex (/Users/gyo/Dropbox/Apps/dot_atom/packages/layout-manager/lib/layout-manager.coffee:79:64)
at Object.module.exports.shrink (/Users/gyo/Dropbox/Apps/dot_atom/packages/layout-manager/lib/layout-manager.coffee:26:13)
at atom-workspace.<anonymous> (/Users/gyo/Dropbox/Apps/dot_atom/packages/layout-manager/lib/layout-manager.coffee:7:73)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:238:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)
2x -0:16.4 blur (atom-text-editor.editor.vim-mode.command-mode)
-0:15.4 pane:split-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:14.6 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:14.6 blur (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:12.7 editor:consolidate-selections (atom-text-editor.editor.mini)
-0:12.7 core:cancel (atom-text-editor.editor.mini)
3x -0:12.7 blur (atom-text-editor.editor.mini)
-0:12.0 ruby-test:toggle (atom-text-editor.editor.vim-mode.command-mode.is-focused)
16x -0:11.4 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)
14x -0:10.8 vim-mode:move-up (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:09.7 pane:split-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)
26x -0:06.7 vim-mode:move-up (atom-text-editor.editor.vim-mode.command-mode.is-focused)
20x -0:04.9 vim-mode:move-down (atom-text-editor.editor.vim-mode.command-mode.is-focused)
5x -0:04.3 window:decrease-font-size (atom-text-editor.editor.vim-mode.command-mode.is-focused)
6x -0:01.6 layout-manager:shrink-active-pane (atom-text-editor.editor.vim-mode.command-mode.is-focused)
-0:00.0 vim-mode:reset-command-mode (atom-text-editor.editor.vim-mode.command-mode.is-focused)
{
"core": {
"disabledPackages": [
"circle-ci",
"emmet",
"git-blame"
],
"themes": [
"atom-dark-ui",
"base16-tomorrow-dark-theme"
]
}
}
# User
autocomplete-paths, v1.0.2
autocomplete-plus, v2.10.0
autocomplete-snippets, v1.2.0
bracket-matcher, v0.73.0
custom-title, v0.7.1
file-icons, v1.5.4
highlight-line, v0.10.1
highlight-selected, v0.9.1
language-rspec, v0.3.0
language-slim, v0.3.0
layout-manager, v0.2.3
project-manager, v1.15.5
rails-rspec, v0.3.1
rspec-snippets, v0.4.0
ruby-test, v0.9.5
tasks, v2.0.0
vim-mode, v0.43.0
# Dev
No dev packages
Uncaught TypeError: Cannot read property '0' of undefined
Atom Version: 0.156.0
System: Mac OS X 10.9.5
Thrown From: layout-manager package, v0.2.3
At /Users/Jadam/.atom/packages/layout-manager/lib/layout-manager.coffee:49
TypeError: Cannot read property '0' of undefined
at Object.module.exports.move (/Users/Jadam/.atom/packages/layout-manager/lib/layout-manager.coffee:49:6)
at Object.module.exports.moveRight (/Users/Jadam/.atom/packages/layout-manager/lib/layout-manager.coffee:31:18)
at atom-workspace.<anonymous> (/Users/Jadam/.atom/packages/layout-manager/lib/layout-manager.coffee:8:70)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)
/cc @atom/core
Many times im in a single pane with multiple tabs and i need to begin the process of breaking out into multiple panes. it would be nice to have a hotkey to do that. Currently i CMD+K then arrow. Then i have to close the old clones file in the original pane. Maybe there is a built in way to do this but i haven't found it despite searching.
My suggested solution is to use the pane movement commands in Layout Manager to create the new pane on the fly and move the active tab to the new pane if one doesnt exist for the command executed and the tab is in a multiple tab pane. What do you think? Im happy to dig in but i was wondering if im missing something here.
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.activate (/Users/Andrew/.atom/packages/layout-manager/lib/layout-manager.coffee:13:9)
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.activate (/Users/Andrew/.atom/packages/layout-manager/lib/layout-manager.coffee:9:9)
After
I had the error
(btw that link is not working)
Full stack of error
ypeError: Cannot read property '0' of undefined
at Object.module.exports.move (/Users/diniscruz/.atom/packages/layout-manager/lib/layout-manager.coffee:49:6)
at Object.module.exports.moveDown (/Users/diniscruz/.atom/packages/layout-manager/lib/layout-manager.coffee:34:17)
at atom-workspace.<anonymous> (/Users/diniscruz/.atom/packages/layout-manager/lib/layout-manager.coffee:10:69)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/lib/select-list-view.js:336:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)
[Enter steps to reproduce below:]
Atom Version: 0.188.0
System: Mac OS X 10.10.2
Thrown From: layout-manager package, v0.2.3
Uncaught TypeError: Cannot read property 'getPanes' of undefined
At /Users/stevenwake/.atom/packages/layout-manager/lib/layout-manager.coffee:76
TypeError: Cannot read property 'getPanes' of undefined
at Object.module.exports.getRelativePane (/Users/stevenwake/.atom/packages/layout-manager/lib/layout-manager.coffee:76:33)
at Object.module.exports.move (/Users/stevenwake/.atom/packages/layout-manager/lib/layout-manager.coffee:51:17)
at Object.module.exports.moveLeft (/Users/stevenwake/.atom/packages/layout-manager/lib/layout-manager.coffee:32:17)
at atom-workspace.<anonymous> (/Users/stevenwake/.atom/packages/layout-manager/lib/layout-manager.coffee:9:69)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)
3x -1:22.6 core:undo (atom-text-editor.editor.is-focused)
11x -1:19.9 layout-manager:enlarge-active-pane (atom-text-editor.editor.is-focused)
-1:11.0 layout-manager:shrink-active-pane (atom-text-editor.editor.is-focused)
-1:11.0 layout-manager:enlarge-active-pane (atom-text-editor.editor.is-focused)
-1:10.8 layout-manager:shrink-active-pane (atom-text-editor.editor.is-focused)
-1:10.6 layout-manager:enlarge-active-pane (atom-text-editor.editor.is-focused)
-1:10.5 layout-manager:shrink-active-pane (atom-text-editor.editor.is-focused)
-1:10.4 layout-manager:enlarge-active-pane (atom-text-editor.editor.is-focused)
-1:10.3 layout-manager:shrink-active-pane (atom-text-editor.editor.is-focused)
2x -1:10.1 layout-manager:enlarge-active-pane (atom-text-editor.editor.is-focused)
-0:20.7 layout-manager:move-pane-left (atom-text-editor.editor)
-0:20.0 layout-manager:move-pane-right (atom-text-editor.editor)
-0:19.8 layout-manager:move-pane-left (atom-text-editor.editor)
-0:19.7 layout-manager:move-pane-right (atom-text-editor.editor)
2x -0:19.6 layout-manager:move-pane-left (atom-text-editor.editor)
-0:00.7 layout-manager:move-pane-right (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"one-dark-ui",
"one-dark-syntax"
]
}
}
# User
language-rspec, v0.3.0
layout-manager, v0.2.3
rspec, v0.1.9
rspec-snippets, v0.4.0
# Dev
No dev packages
[Enter steps to reproduce below:]
Atom Version: 0.192.0
System: Mac OS X 10.10.3
Thrown From: layout-manager package, v0.2.3
Failed to activate the layout-manager package
At Cannot read property 'command' of undefined
TypeError: Cannot read property 'command' of undefined
at Object.module.exports.activate (/Users/jessicakoch/.atom/packages/layout-manager/lib/layout-manager.coffee:8:25)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:222:19)
at /Applications/Atom.app/Contents/Resources/app/src/package.js:203:30
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:147:15)
at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:195:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:434:21)
at /Applications/Atom.app/Contents/Resources/app/src/package-manager.js:418:29
at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app/src/config.js:298:16)
at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:413:19)
at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:394:46)
{
"core": {
"themes": [
"seti-ui",
"peacock-syntax"
],
"disabledPackages": [
"linter"
]
}
}
# User
auto-indent, v0.1.0
jshint, v1.3.0
language-haml, v0.15.0
layout-manager, v0.2.3
peacock-syntax, v1.3.0
seti-ui, v0.6.1
# Dev
No dev packages
Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.2.3
) of this package:
activationCommands
instead of activationEvents
in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
styles/
directory instead of stylesheets/
in the <pack-name>
packageatom.views.getView(atom.workspace)
, which returns an HTMLElement.Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See atom/atom#6867 for more info. Thanks!
I am trying to use your plugin on KDE (Ubuntu) and am trying to figure out what the "command" key is supposed to be. Nothing seems to work. Please help me out. Thanks.
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/usr/share/atom/resources/app/src/atom.js:53:11)
Object.activate (/home/itaibh/.atom/packages/layout-manager/lib/layout-manager.coffee:5:9)
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.activate (/Users/Andrew/.atom/packages/layout-manager/lib/layout-manager.coffee:5:9)
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.activate (/Users/Andrew/.atom/packages/layout-manager/lib/layout-manager.coffee:6:9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.