Add option to touch only changed lines
未关闭
enhancement
- 主要语言
- Vim Script
- 星标
- 1.1k
- 派生
- 102
- PR 合并指标
- 30 天内没有已合并 PR
描述
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`.
贡献指南
调研方向
首先阅读现有的 :FormatCode 和 :AutoFormatBuffer 命令,以及 plugin 如何跟踪 buffer 更改。定义如何检测一个 session 中已更改的行范围,然后验证所提议的 :FormatChangedLines 和 :AutoFormatChangedLines 变体只格式化这些范围,同时现有命令仍保持对整个 buffer 进行操作的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- vim
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100