Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

add pane resize keyboard commands - #7354

Closed
liuxiong332 wants to merge 2 commits into
atom:masterfrom
liuxiong332:pane-resize-command
Closed

liuxiong332 wants to merge 2 commits into
atom:masterfrom
liuxiong332:pane-resize-command

Conversation

@liuxiong332

Copy link
Copy Markdown
Contributor

This PR add commands pane:shrink and pane:enlarge to make it enable resize the panes with keyboard.

The following is the keymap binding:

Command name Default key binding Comment
pane:enlarge cmd-alt-= enlarge the current pane by 10%
panes:shrink cmd-alt-- shrink the current pane by 10%

Closes #7332

@alexandernst

Copy link
Copy Markdown

Is there a problem with this one or it just hasn't been reviewed yet?

@liuxiong332

Copy link
Copy Markdown
Contributor Author

I think nobody to review this PR.

@liuxiong332

Copy link
Copy Markdown
Contributor Author

Anyone @mnquintana can review this PR? This PR has committed for many days.

@mhurwi

mhurwi commented Jul 14, 2015

Copy link
Copy Markdown

+1. I'm another fan of keyboard bindings to shrink/enlarge panes.

Comment thread src/pane-element.coffee

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about renaming these to pane:increase-size and pane:decrease-size to be more consistent with the command names that adjust the font size?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, would you mind moving these methods into the model themselves so that the command handlers just call things like @getModel().increaseSize() and @getModel().decreaseSize()

@amfarrell

Copy link
Copy Markdown

I, too am a fan of resizing panes with keybindings. It would let me move over from my current workflow using xmonad and vim (or Amethyst and vim on osx). Thank you @liuxiong332 for writing this and @kevinsawicki for reviewing/critiquing. So excited!

@kevinsawicki

Copy link
Copy Markdown
Contributor

Continuing over in #8357 to address the review comments, thanks for this 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants