Skip to content

Commit

Permalink
fix: increase cache time
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed Jul 14, 2023
1 parent 39b2139 commit 5597f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BAT_THEME=${BAT_THEME:-Monokai Extended}
# for 'fzf' to work correctly it needs to be set to bash
SHELL=bash
# a cached version will be used and only then a new one will be pulled
gh_default_cache_time="30m"
gh_default_cache_time="1h"
gh_default_limit=20
gh_user_limit=${gh_user_limit:-$gh_default_limit}
gh_accept_json="Accept: application/vnd.github+json"
Expand Down Expand Up @@ -405,7 +405,7 @@ gh_query "$*" | fzf \
--bind '?:change-preview(print_help_text)+change-preview-window:+1' \
--bind ';:jump' \
--bind 'load:change-preview([[ -n {q} && -n {} ]] && view_contents {})+change-preview-window:+{1}+3/3' \
--bind 'tab:toggle-preview+change-preview([[ -n {q} && -n {} ]] && view_contents {})+change-preview-window:+{1}+3/3' \
--bind 'tab:change-preview-window(hidden|nohidden:+{1}+3/3)+change-preview:[[ -n {q} && -n {} ]] && view_contents {}' \
--border block \
--color 'bg+:233,bg:235,gutter:235,border:238,scrollbar:235' \
--color 'preview-bg:234,preview-border:236,preview-scrollbar:237' \
Expand Down
3 changes: 0 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ export FZF_DEFAULT_OPTS="
- If the `PAGER` environment variable is set to `less`, when opening the destination file, it
will automatically scroll to the matching line found.

### Miscellaneous
- Be careful which files you open in your editor to avoid triggering something unintended.

---

## 💪 Contributing
Expand Down

0 comments on commit 5597f96

Please sign in to comment.