Skip to content

Manage per-page limit while listing #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2021
Merged

Conversation

dantonyuk
Copy link
Contributor

@dantonyuk dantonyuk commented Nov 3, 2021

Control how many gists we're going to get during list commands. Two ways introduced:

  1. Global variable g:gist_per_page_limit which is 30 by default. Set it to the value that will be used as a default number of gists per page in list commands.
  2. Specify the number of gists for any list command explicitly -n or --per-page option:
:Gist -l -n 100
:Gist --list --per-page 100

Note that the page limit could not exceed 100 and should be a positive number.

Closes #232

Control how many gists we're going to get during list commands. Two ways
introduced:

1. Global variable `g:gist_per_page_limit` which is 30 by default. Set
   it to the value that will be used as a default number of gists per
   page in list commands.
2. Specify the number of gists for any list command explicitly `-n` or
   `--per-page` option:

```
:Gist -l -n 100
:Gist --list --per-page 100
```

Note that the page limit could not exceed 100 and should be a positive
number.
@dantonyuk dantonyuk mentioned this pull request Nov 3, 2021
@mattn
Copy link
Owner

mattn commented Nov 4, 2021

LGTM

@mattn mattn merged commit 34e0f0a into mattn:master Nov 4, 2021
@mattn
Copy link
Owner

mattn commented Nov 4, 2021

Thank you

@dantonyuk dantonyuk deleted the manage-per_page branch November 4, 2021 07:36
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.

Searching for a gist
2 participants