[FEAT] Adding the "installed apps" count

未關閉
#1,609 8 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
c, macos

研究方向

該 issue 提到了 Fastfetch 的 Command 和 Packages 模組,並提供了一個 macOS 計數命令。首先比較這些現有方法,並確定在 macOS 和 Windows 上應如何統計已安裝的應用程式;當 Fastfetch 在兩個平台上都提供原生且易於使用的應用程式數量時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

enhancement
Description

Hi!
I believe it would be beneficial to include the number of apps installed on macOS and Windows in Fastfetch.
This could be implemented through a new module (e.g., Apps or Applications) or as an option in the custom format within Packages.

Motivation

In my personal use case, the Command module is sufficient for retrieving the number of installed apps.
However, I think that many macOS and Windows users install applications instead of packages (or a combination of both) but they may not know how to write that specific command.
Therefore, it might be more user-friendly to incorporate this functionality as a native feature in Fastfetch.

Additional context

If useful, here is my configuration with the command I use to retrieve the number of apps on macOS. The command I use simply counts the apps displayed in Spotlight / Apps:

{
  "type": "command",
  "key": "Apps",
  "text": "mdfind \"kMDItemContentType == 'com.apple.application-bundle'\" -onlyin /Applications -onlyin ~/Applications -onlyin /System/Applications | wc -l | xargs"
},

I still haven’t found a polished command for Windows but I can share my attempts if needed.

Thank you for considering my suggestion.

Edit: I’ve updated the command above to the "final" version. If you’re interested in previous iterations or alternative approaches, please refer to the comments below.

主要語言
C
星號
25.4k
分支
947
平均合併
1 天 8 小時
30 天內合併 PR
21

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

fastfetch-cli/fastfetch 的其他 Issue

查看 fastfetch-cli/fastfetch 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。