Use "regular" Unicode chars for status display
还没有人认领这个 Issue。
评估
调研方向
Start with the table-rendering path used by the kup list command and reproduce the output in a terminal or when pasted into Slack. Done means status uses the proposed broadly supported Unicode symbols and the Status column precedes Installed version, with the resulting layout verified within the intended terminal width.
由索引模型根据 Issue 内容生成。
描述
The current status display looks like this when cut and pasted from my terminal:
c$ kup list
┌──────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────┐
│ Package name (alias) │ Installed version │ Status │
├──────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────┤
│ k │ f73063d8260ca1a40c9e850db60f3a9a1dcb691f?narHash=sha256-pFOw/vJ6g9bM8PzfiaZtSc89Vohmcu/rCkxZiQAeAEo%3D │ 🟠 newer version available │
│ kup │ ee27b243e7944099d1868b8ccb21d2a74b016e30?narHash=sha256-BKmc7jyM6xJ%2BfcCKO7X%2Bw57s5n%2B3fpC6%2BK//NtcmqDw%3D │ 🟢 installed │
│ kavm │ │ 🔵 available │
│ kevm │ │ 🔵 available │
│ kplutus │ │ 🔵 available │
│ kmir │ │ 🔵 available │
│ kontrol │ │ 🔵 available │
│ kmxwasm │ │ 🔵 available │
└──────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────┘
However, in the terminal itself (urxvt), which is configured to use the Inconsolata font, it looks like this:
And here's what a similar display looks like when pasted into Slack:
We see these drastic differences because the Unicode characters you're using, \u1F7E0, \u1F7E2, \u1F535, etc. are fairly new: a fair number of fonts don't yet support these, and some systems (such as Slack) don't support these because of the risk they won't be displayed correctly. This is made all the worse only colour systems can support these particular characters properly.
I suggest you change these to older, more standard characters that will display correctly in far more cases, including monochrome displays. For example:
▲ newer version available (\u25B2)
● installed (\u25CF)
○ available (\u25CB)
Note that the "icons" will still get the correct colour so long as you send the terminal colour code you're using for the text before you send the "icon" character.
While we're at it, it would also be nice to swap the positions of the "Status" and "Installed version" columns so that those of us cutting to terminal width (e.g., when piping into less -S) can see the more important Status column within 80 columns or whatever we're using.
- 主要语言
- Python
- 星标
- 10
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
runtimeverification/kup 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 52/100
runtimeverification/kup#149 ·
-
难度 4/5 3-5 天 新手友好度 35/100
runtimeverification/kup#138 ·
-
Update `kup list` to show nicer and shorter version strings again可能重新可做 @juliankuners 于 426 天前认领,目前没有进行中的 PR。 未关闭
runtimeverification/kup#137 · 1 条评论 · 已指派 1 人 ·
-
Add more Nix versions to test CI workflow可能重新可做 @juliankuners 于 427 天前认领,目前没有进行中的 PR。 未关闭
runtimeverification/kup#136 · 已指派 1 人 ·
-
Kup fails to uninstall nix profile packages by index on new nix and nix manifest versions可能重新可做 @juliankuners 于 427 天前认领,目前没有进行中的 PR。 未关闭
runtimeverification/kup#135 · 已指派 1 人 ·
查看 runtimeverification/kup 的全部 Issue
相似的 Issue
-
repo-audit
难度 2/5 1-3 小时 新手友好度 75/100
scverse/repo-health#20 ·
维护者通常 1 天内回复
-
/context/prime scope override double-prefixes an entity-ref project and drops its scoped memories未关闭
难度 2/5 1-3 小时 新手友好度 85/100
phasespace-labs/palinode#232 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
collective/icalendar#1858 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
langflow-ai/langflow#15496 ·
维护者通常 1 天内回复