Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable launch animation (scale up) #915

Closed
yam-liu opened this issue Jun 20, 2019 · 4 comments · Fixed by #920
Closed

How to disable launch animation (scale up) #915

yam-liu opened this issue Jun 20, 2019 · 4 comments · Fixed by #920
Milestone

Comments

@yam-liu
Copy link

yam-liu commented Jun 20, 2019

Is your feature request related something that is currently hard to do? Please describe.
It launchs slow. The animation also increase startup time and not so good (scale from 0 to 1?), hurt eyes.

Describe the solution you'd like
disable, or change scale effect?

Describe alternatives you've considered
None.

Additional context
VSCode slows too. But show windows immediately no animation. I want to have an option to disable it. Thanks.

@ychin
Copy link
Member

ychin commented Jun 21, 2019

Wait, how long is "slow"? It shouldn't take more than half a second or so to launch. I'm wondering if it's misc plugins and vimrc settings making the launch slow. If you launch vim in terminal does it come up immediately? What happens if you launch MacVim GUI with no plugins (do mvim -u NONE -U NONE in terminal)?

@eirnym
Copy link
Contributor

eirnym commented Jun 21, 2019

I see the same even I have no configuration at all (-u NONE -U NONE). This is how MacVim GUI creates a new window. I'd also prefer to have no such animation at all.

The half of a second is enough to be noticeable and it may be bad for some people. Most applications on macOS doesn't include open animation (e.g. Safari, Terminal, Mail). It's better to add a defaults option to change this behaviour.

@yam-liu
Copy link
Author

yam-liu commented Jun 25, 2019

@ychin As @eirnym said, the slow may caused by plugins. It doesn't matter in this case, I will optimize it latter. Even when plugins are all disabled, the animation is also annoying.

@ychin
Copy link
Member

ychin commented Jul 7, 2019

I guess I'm ok with adding an option to turn it off. The animation is the default if you use the "document window" style, and you can see that in default apps like TextEdit and Apple Maps, so I'm going to leave the current behavior as default. The new option will be a command-line-only toggle.

For text editors, seems like Xcode does do the "pop" animation like MacVim, but VSCode / Sublime Text do not.

@ychin ychin added this to the snapshot-157 milestone Jul 7, 2019
ychin added a commit to ychin/macvim that referenced this issue Jul 7, 2019
Add a new option called "MMDisableLaunchAnimation" to disable the "pop"
launch animation that gets assigned to document windows. The animation
will still be the default behavior as that's native to macOS's treatment
of document windows.

Fix macvim-dev#915
@ychin ychin closed this as completed in #920 Jul 7, 2019
ychin added a commit to ychin/macvim that referenced this issue Jul 21, 2019
Vim patch 8.1.1722

Features:

- Add 'MMDisableLaunchAnimation' option to disable the opening animation
  of MacVim Windows. macvim-dev#915
- Make 'MMTitlebarAppearsTransparent' work in pre-Mojave macOS versions.
  macvim-dev#917

Fixes:

- Fix issue where MacVim would freeze when opening a file already opened
  in another MacVim window when swap files are enabled. macvim-dev#913
- Menu items with name starting with ']' now properly get hidden in the
  main menu bar (see `:help hidden-menus`). macvim-dev#853

Targets macOS 10.8+

Script interfaces have compatibility with these versions:

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.6
ychin added a commit that referenced this issue Jul 28, 2019
Vim patch 8.1.1722

Features:

- Add 'MMDisableLaunchAnimation' option to disable the opening animation
  of MacVim Windows. #915
- Make 'MMTitlebarAppearsTransparent' work in pre-Mojave macOS versions.
  #917

Fixes:

- Fix issue where MacVim would freeze when opening a file already opened
  in another MacVim window when swap files are enabled. #913
- Menu items with name starting with ']' now properly get hidden in the
  main menu bar (see `:help hidden-menus`). #853

Targets macOS 10.8+

Script interfaces have compatibility with these versions:

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants