Add format for fs widget
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 1.1k
- Forks
- 207
- PR merge metrics
- No merged PRs in 30d
Description
Add a format for fs widget like this:
if size > 0 then
local units = math.floor(math.log(size)/math.log(1024))
fs_now[path] = {
units = fs.units[units],
percentage = math.floor(100 * used / size), -- used percentage
size = string.format("%.1f", size / math.pow(1024, units)),
used = string.format("%.1f", used / math.pow(1024, units)),
free = string.format("%.1f", free / math.pow(1024, units))
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Locate the fs widget implementation in the repository and compare its current output with the Lua format shown in the issue. Add the requested formatted fields and verify the widget reports size, used space, free space, and percentage as shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100