Add option to touch only changed lines
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- vim
- 领域
- tooling
调研方向
首先阅读现有的 :FormatCode 和 :AutoFormatBuffer 命令,以及 plugin 如何跟踪 buffer 更改。定义如何检测一个 session 中已更改的行范围,然后验证所提议的 :FormatChangedLines 和 :AutoFormatChangedLines 变体只格式化这些范围,同时现有命令仍保持对整个 buffer 进行操作的行为。
由索引模型根据 Issue 内容生成。
描述
It would be nice to have a mode to detect which lines you had touched in this editing session and only format those ranges.
We'd need a way to decide between this behavior and formatting the whole buffer. One option would be a new :FormatChangedLines and :AutoFormatChangedLines command that would work as variants of :FormatCode and :AutoFormatBuffer.
- 主要语言
- Vim Script
- 星标
- 1.1k
- 派生
- 102
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/vim-codefmt 的其他 Issue
-
enhancement
难度 1/5 1-3 小时 新手友好度 68/100
google/vim-codefmt#53 ·
-
Add meson format 未关闭new formatter
难度 3/5 1-2 天 新手友好度 45/100
google/vim-codefmt#243 ·
-
难度 3/5 1-2 天 新手友好度 52/100
google/vim-codefmt#240 · 1 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
google/vim-codefmt#234 · 2 条评论 ·
-
难度 1/5 1-3 小时 新手友好度 45/100
google/vim-codefmt#222 · 3 条评论 ·
查看 google/vim-codefmt 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
pastelsky/bundlephobia#1122 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
CachyOS/distribution#587 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 70/100