Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Shortcut to Resize the Window

未关闭
#1 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@ankit02327 已经在做这个了。

开始于 2025年8月28日。

评估

这个 Issue 还没有评估数据。

描述

bug enhancement

There should be a keybinding such that when those keys are pressed, the three windows resize themselves into the ratio they have by default;
This fixes the problem if a user manually resizes the windows and then wants the default back;
Also if some pop up opens in nvim ; it distrubs the size of the windows permanently so a temporary solution is for the user to use the keybinding to manually reset the size; though this should happen automatically (A particular example, let's say if a user in nvim has directory pane and he/she toogles it and it has been confirmted that the input output pane gets diestoredted permanently until user manually resizes it)I’ve noticed that when working with multiple windows in Neovim, the layout often gets distorted:

  • If I manually resize any window, it breaks the original proportions.
  • When toggling the file explorer or when a popup/floating window opens, the I/O pane especially tends to lose its intended ratio and doesn’t return to normal after closing.

Right now, the only fix is to manually resize everything, which is tedious.

What I need

A simple keybinding that will reset all windows back to the default ratios defined by the plugin. This would give me a quick way to restore the layout whenever something breaks.

Future improvement

Ideally, the reset should happen automatically after closing temporary windows (like directory pane or popups). But until then, a manual keybinding will be a good fallback.

Example workflow

  • I have three panes: code, I/O, and directory in their intended ratio.
  • I toggle the directory pane → the I/O pane gets distorted.
  • Press the reset keybinding → everything snaps back to the default proportions.
主要语言
Lua
星标
4
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ankit02327/nvim-cpp-setup 的其他 Issue

查看 ankit02327/nvim-cpp-setup 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。