From b442dbd16aa53590a3653367fc548d9a9b0124cf Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Sat, 6 Jul 2024 13:42:06 -0700 Subject: [PATCH] feat(config): increase GH_FZF_DEFAULT_LIMIT to 75 Additionally, increase the default limit for labels via the `issue` and `pr` command's `alt-l` and `alt-L` keybindings to 500. --- README.md | 2 +- gh-fzf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a451bd..d9efcb5 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/gh-fzf b/gh-fzf index b1b1e04..7517e49 100755 --- a/gh-fzf +++ b/gh-fzf @@ -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 @@ -779,7 +779,7 @@ select_labels() { "Usage: gh fzf util modify-labels (add | remove) (issue | pr) " # 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"