santip / resize-panes Goto Github PK
View Code? Open in Web Editor NEWAtom Package for resizing panes
Home Page: https://atom.io/packages/resize-panes
License: MIT License
Atom Package for resizing panes
Home Page: https://atom.io/packages/resize-panes
License: MIT License
The default keybindings on the atom package page don't match the code or the readme. The Atom package page says cmd-shift-= and cmd-shift--, but they're actually cmd-alt-= and cmd-alt--
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:54:11)
Object.activate (/Users/jimm/.atom/packages/resize-panes/lib/resize-panes.coffee:7:9)
I can expand the Settings window but I can't seem to shrink it
I noticed this package was added to core, so Atom asked to remove it. After the latest Atom update, both before and after I removed this package. Resizing the panes via the keyboard has stopped working.. Thoughts on how to fix this?
In keymaps/resize-panes.cson: Use the atom-text-editor
tag instead of the editor
class.
Store package style sheets in the styles/
directory instead of stylesheets/
in the resize-panes
package
Package.getStylesheetsPath (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:460:9)
Package.getStylesheetPaths (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:471:32)
Package.loadStylesheets (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:453:38)
<unknown> (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:183:19)
Package.measure (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:177:12)
:-)
Since windows and linux do not have a CMD-key, this plugin won't work out of the box on these platforms.
Hi !
When I search for "resize-panes" in the "Install Packages" panel, this package doesn't show up. This problem doesn't occur with "swap-panes", "move-panes" and "maximize-panes" packages.
I checked everything :
Did I miss something ?
It seems the Shrink keybinding is missing after installing the plugin. Enlarge works and shows a keybinding in the command palette, but shrink doesn't show a keybinding in the command palette. Had to use the command palette repeatedly to shrink the pane.
Atom 0.140.0
Resize Panes 0.1.0
Enlarging and shrinking works fine except when previewing markdown files.
Steps to reproduce:
Expected: Should shrink window
Actual: Does nothing
Enlarging the window works.
This is just mildly frustrating, not a biggie at all.
Just wanted to let you know.
And thank you for this wonderful package!
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:808:9)
Package.hasActivationCommands (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:733:20)
<unknown> (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:185:24)
Package.measure (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package.js:177:12)
PackageManager.loadPackage (C:\Users\bryan\AppData\Local\atom\app-0.200.0\resources\app.asar\src\package-manager.js:355:14)
In keymaps/resize-panes.cson: Use the atom-workspace
tag instead of the workspace
class.
Thanks for making these utilities! I was seriously contemplating going back to Sublime over the loss of Origami! Problem solved.
FWIW, it may be just me, but on my Macbook Pro it seems I needed to remap as follows (note the backslash) to get proper shrinkage by escaping the dash character:
'.workspace .editor:not(.mini)':
'alt-cmd-\-': 'resize-panes:shrink-active-pane'
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:54:11)
Object.activate (/Users/jimm/.atom/packages/resize-panes/lib/resize-panes.coffee:6:9)
Your Readme here: https://atom.io/packages/resize-panes
...states that the resize pane shortcut is cmd-shift-=
and cmd-shift--
when in actually it should be:
Larger: cmd option +
or ⌘⌥+
Smaller: cmd option -
or ⌘⌥-
I git-cloned the package and restarted the application.
Atom Version: 0.188.0
System: Mac OS X 10.10.1
Thrown From: resize-panes package, v0.1.0
Failed to activate the resize-panes package
At Cannot find module 'jquery'
Error: Cannot find module 'jquery'
at Module._resolveFilename (module.js:351:15)
at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:383:52)
at Function.Module._load (module.js:293:25)
at Module.require (module.js:380:17)
at require (module.js:399:17)
at Object.<anonymous> (/Users/bayram/.atom/packages/resize-panes/lib/resize-panes.coffee:1:5)
at Object.<anonymous> (/Users/bayram/.atom/packages/resize-panes/lib/resize-panes.coffee:1:1)
at Module._compile (module.js:475:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:370:32)
at Function.Module._load (module.js:325:12)
at Module.require (module.js:380:17)
at require (module.js:399:17)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:678:34)
at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app/src/package.js:257:12)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:236:14)
at /Applications/Atom.app/Contents/Resources/app/src/package.js:741:25
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:223:20)
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)
28x -1:15.9 core:undo (atom-text-editor.editor)
4x -0:00.9 resize-panes:shrink-active-pane (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"one-dark-syntax"
]
}
}
# User
resize-panes, v0.1.0
# Dev
No dev packages
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.