Invisibles are copied with text
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- desktop
调研方向
在启用不可见标记的情况下,在 Code 中重现复制和粘贴步骤,然后跟踪编辑器的复制和粘贴行为,以找出仅在选中时显示的状态在哪里被保留。完成标准是:粘贴的文本仅在被选中时显示不可见字符,与原始文本现有的行为一致。
由索引模型根据 Issue 内容生成。
描述
What Happened
This is a minor issue, but when you copy and paste text in Code, the invisible markers (spaces, tabs, newlines) come with it. The pasted text displays invisibles, even though it's not selected.
If I select and deselect the pasted text, the invisibles disappear as expected.
Expected Behavior
Invisibles should not be pasted with the rest of the text, but instead should only be shown when selected like all other text
Steps to Reproduce
- Enter some text containing spaces (like
Hello World) - Select that text. You'll see an invisible marker in the space between words when it's selected.
- Copy that text
- Paste it somewhere else in Code. You will see the invisible marker in the pasted text, even though it's not selected
Logs
Platform Information
Odin daily
- 主要语言
- Vala
- 星标
- 521
- 派生
- 119
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 13
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
elementary/code 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 65/100
elementary/code#1818 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
elementary/code#1813 · 2 条评论 ·
-
Needs Design Priority: Wishlist
难度 3/5 1-2 天 新手友好度 68/100
elementary/code#1786 · 3 条评论 ·
-
Needs Design Priority: Wishlist
难度 5/5 一周以上 新手友好度 45/100
elementary/code#1783 ·
-
Priority: Wishlist
难度 4/5 3-5 天 新手友好度 38/100
elementary/code#1762 · 3 条评论 ·
相似的 Issue
-
`--app` focus through the daemon can pick an off-screen window and refuse with `axElementNotFound` 未关闭clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P1
难度 2/5 1-3 小时 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 1/5 1 小时以内 新手友好度 92/100
CachyOS/cachyos-aur-derived#754 ·
-
bug draftomen size: S
难度 2/5 1-3 小时 新手友好度 82/100
andreagrandi/draftomen#681 ·
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 75/100
alexgorbatchev/simple-ptt#11 ·