Skip to content

Commit

Permalink
feat(history_commands): use '--sync' the option helps a bit to avoid …
Browse files Browse the repository at this point in the history
…screen flickering
  • Loading branch information
LangLangBart committed Mar 22, 2024
1 parent ea40fbe commit 2f830ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ shift "$((OPTIND - 1))"

# ====================== check requirements =======================

for tool in bat column curl fzf gh; do
for tool in bat column curl fzf gh nl tail; do
if ! command -v $tool >/dev/null; then
die "'$tool' was not found."
fi
Expand Down Expand Up @@ -727,9 +727,10 @@ view_history_commands() {
--color "header:${header_color:--1}" \
--header "${header_string:-"enter select · ^d delete a line · esc quit"}" \
--info inline \
--scheme history \
--preview-window 'hidden' \
--prompt 'Select a History Entry > '
--prompt 'Select a History Entry > ' \
--scheme history \
--sync
)

if [[ -n $selection ]]; then
Expand Down

0 comments on commit 2f830ec

Please sign in to comment.