feat: add configurable pageSize option - #14
Merged
Bharath-code merged 1 commit intoFeb 2, 2026
Merged
Conversation
Allow users to customize the number of repos displayed per page via config: # ~/.config/git-scope/config.yml pageSize: 25 - Add PageSize field to Config struct with yaml tag - Default remains 15 if not specified or set to 0 - Model now reads pageSize from config instead of hardcoded value Co-Authored-By: Claude Opus 4.5 <[email protected]>
Owner
|
will review it and close the PR today |
Owner
|
will release this feature in 1.3.2 version. Thank you contribution and sponsor. |
steven-pribilinskiy
pushed a commit
to steven-pribilinskiy/git-scope
that referenced
this pull request
Jun 2, 2026
Allow users to customize the number of repos displayed per page via config: # ~/.config/git-scope/config.yml pageSize: 25 - Add PageSize field to Config struct with yaml tag - Default remains 15 if not specified or set to 0 - Model now reads pageSize from config instead of hardcoded value Co-authored-by: Claude Opus 4.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pageSizeconfig option to customize repos displayed per pageProblem
The page size (15 repos per page) was hardcoded. Users with many repos or larger screens may want to see more repos at once without paginating.
Solution
Added
pageSizefield to the config struct:Implementation details:
PageSize intfield inConfigstruct withyaml:"pageSize,omitempty"tagdefaultConfig()NewModel()now reads fromcfg.PageSizeinstead of hardcoded valueTest plan
pageSizein config — should show 15 repos per page (default)pageSize: 25to config — should show 25 repos per pagepageSize: 0— should fall back to 15 (default)[/]) still work correctlyThis PR was created by Claude (claude.ai)