Skip to content

Commit

Permalink
feat(config): increase GH_FZF_DEFAULT_LIMIT to 75
Browse files Browse the repository at this point in the history
Additionally, increase the default limit for labels via the `issue`
and `pr` command's `alt-l` and `alt-L` keybindings to 500.
  • Loading branch information
benelan committed Jul 6, 2024
1 parent ea1a681 commit b442dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Environment variables are used to configure `gh-fzf`.
| Variable | Description | Default |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `GH_FZF_DEFAULT_LIMIT` | The initial number of items to request from GitHub. The number of items can be changed at runtime with the `alt-1` to `alt-9` commands, see the [Usage](#usage) section for more info. | 69 |
| `GH_FZF_DEFAULT_LIMIT` | The initial number of items to request from GitHub. The number of items can be changed at runtime with the `alt-1` to `alt-9` commands, see the [Usage](#usage) section for more info. | 75 |
| `GH_FZF_TRUNCATE_FIELDS` | Set the variable to any value to make `gh` truncate text to ensure all fields fit on the screen. When set, truncated text is **not** fuzzy findable. When unset, fields may be cut off, but all text is still fuzzy findable. | unset |
| `GH_FZF_HIDE_HINTS` | Set the variable to any value to hide the header (where the keybinding hints are) on startup. The header can still be toggled with the `alt-H` keybinding. | unset |
| `GH_FZF_BRANCH_PREFIX` | A string to prepend to the branch name entered for the `pr` command's `alt-o` keybinding. Spaces are replaced with hyphens. See the [commit](https://github.com/benelan/gh-fzf/commit/f6f78e2dce617f17c6048f28f568fbdc57895119) message for examples. | unset |
Expand Down
4 changes: 2 additions & 2 deletions gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ global_binds="Globals > (ctrl-o: open url) (ctrl-y: copy url) (ctrl-r: reload) (
# ----------------------------------------------------------------------1}}}
# CONFIGURATION {{{1

GH_FZF_DEFAULT_LIMIT="${GH_FZF_DEFAULT_LIMIT:-69}"
GH_FZF_DEFAULT_LIMIT="${GH_FZF_DEFAULT_LIMIT:-75}"

if [ -z "$GH_FZF_COPY_CMD" ]; then
if has /mnt/c/Windows/System32/clip.exe; then
Expand Down Expand Up @@ -779,7 +779,7 @@ select_labels() {
"Usage: gh fzf util modify-labels (add | remove) (issue | pr) <identifer>"

# increase the limit when selecting labels
[ "$GH_FZF_DEFAULT_LIMIT" -lt 420 ] && label_limit="-L 420"
[ "$GH_FZF_DEFAULT_LIMIT" -lt 500 ] && label_limit="-L 500"

label_flags="$(
gh fzf label $label_limit | flagify "--$1-label"
Expand Down

0 comments on commit b442dbd

Please sign in to comment.