Skip to content

rename file_cap to max_files#14522

Merged
Frenzie merged 2 commits into
koreader:masterfrom
Commodore64user:capping
Oct 28, 2025
Merged

rename file_cap to max_files#14522
Frenzie merged 2 commits into
koreader:masterfrom
Commodore64user:capping

Conversation

@Commodore64user

@Commodore64user Commodore64user commented Oct 28, 2025

Copy link
Copy Markdown
Member

what's new

  • Renamed all instances of file_cap parameter and associated variables to file_count_cap for clearer intent (even though the poet already knows what the word cap means). ;)

@poire-z might need to merge this ASAP


This change is Reviewable

@Frenzie

Frenzie commented Oct 28, 2025

Copy link
Copy Markdown
Member

I'll wait for @poire-z but to me this seems to reduce clarity. It's not a file count but a file iteration cap/limit (or just number).

@poire-z

poire-z commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Fine with me, It's better with having "count" than the previous file_cap.
But maybe you'll find even better :)

@Frenzie

Frenzie commented Oct 28, 2025

Copy link
Copy Markdown
Member

Such a variable is normally named max_files or file_limit (search GitHub code).

@hius07

hius07 commented Oct 28, 2025

Copy link
Copy Markdown
Member

max_files in util, and screensaver_random_max_files look good.

@Frenzie Frenzie added this to the 2025.10 milestone Oct 28, 2025
@Frenzie Frenzie merged commit 5ac4341 into koreader:master Oct 28, 2025
4 checks passed
@Frenzie Frenzie changed the title rename file_cap to file_count_cap rename file_cap to max_files Oct 28, 2025
@Commodore64user Commodore64user deleted the capping branch October 28, 2025 11:57
@Commodore64user

Commodore64user commented Oct 28, 2025

Copy link
Copy Markdown
Member Author

hey @Frenzie will there be a 2025.10, or should we embrace the idea of 2025.11 already?

@Frenzie

Frenzie commented Oct 29, 2025

Copy link
Copy Markdown
Member

Barring unforeseen circumstances there will be.

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants