neovim-mac icon indicating copy to clipboard operation
neovim-mac copied to clipboard

Suggestion: tab responsiveness may be better

Open rosingrind opened this issue 1 year ago • 2 comments

Opening and closing tabs plays one animation at a time, which leads to small delays affecting usability. Probably, it should be better if animations of closing/opening a tab will be played simultaneously? I've checked Chrome's animations and it seems that they're instantly selecting previous tab and playing async closing animation on the tab that's closed.

https://github.com/JaySandhu/neovim-mac/assets/108860307/0cf971b4-6fe3-40aa-91ef-58be5de59c08

Anyway, thank you for the app, it really feels good and native to me as it's pretty minimalistic! Looking into newer versions and probably a brew package :)

rosingrind avatar Aug 08 '23 21:08 rosingrind

Screen.Recording.2023-08-09.at.12.17.39.AM.mp4

I probably must clear it up, in the video I am opening and closing tabs in a fast manner. It seems that logical tabs are closing faster that the animations wear out, so the window is closed when tabs are still shown.

Idk if this may be helpful, but I think it should: in https://github.com/alacritty/alacritty/issues/1544 alacritty team investigates a way to perform native tabbing in macOS. It's implemented in rust lang (may not be such useful), but technical info related to tabbing is still left in the issue.

rosingrind avatar Aug 08 '23 21:08 rosingrind

I did consider using native macOS tabs, the issue is that they can be dragged out into their own windows, whereas Neovim tabs are always locked to the same window. There's no way to disable that behavior either, so went down the road of implementing it myself.

I think I'll rewrite most of the animation code as the implementation could be improved, but also wondering if that time could be better spent elsewhere.

JaySandhu avatar Aug 11 '23 09:08 JaySandhu