processing / processing/processing4

Adding a Caret Position Indicator

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

还没有人认领这个 Issue。

主要语言
Java
星标
497
派生
183
平均合并
4 小时 39 分钟
30 天内合并 PR
3

描述

Relevant sub-area for this feature?

Core/Environment/Rendering

Feature description

I think it would be beneficial to have a caret position indicator, similar to as seen in common text editors, for displaying the caret line and column. This may appear in the bottom right, next to the version number, as so:

Image

A user would have control over the visibility of the indicator in preferences. The default would be non-visible, as to not crowd the display. Preference may show as:

Image

Benefits

There are several benefits from having a caret indicator:

  1. In larger sketches, knowing the location of the caret may help users navigate more efficiently
  2. When debugging or collaborating, knowing the precise location in code removes ambiguity
  3. Reduces the need for 'counting characters' when selecting/copying/pasting/deleting code
Possible challenges

Possible challenges may revolve around adding support for different languages in the preferences window.

Additional context

No response

Would you like to work on the issue?

Yes. I already have some working code for this feature, which can be ironed out.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先定位 Core/Environment/Rendering 区域和首选项窗口,然后查看 issue 作者现有的可运行代码。当编辑器在版本号附近显示插入符号所在的行和列、默认保持隐藏,并且可以在首选项中启用或禁用时,此功能即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
design, desktop
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

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