Add bindings for C-j and C-k (#165)

Fixes #164
This commit is contained in:
Denis Isidoro 2019-12-09 11:08:24 -03:00 committed by GitHub
parent 42ac8dae9c
commit 0b2e67c3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

2
navi
View file

@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh"
VERSION="0.15.5"
VERSION="0.16.0"
NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@"

View file

@ -11,6 +11,7 @@ ui::fzf() {
if ${autoselect:-false}; then
args+=("--select-1")
fi
args+=("--bind"); args+=("ctrl-j:down,ctrl-k:up")
local -r fzf_cmd="$([ $NAVI_ENV == "test" ] && echo "fzf_mock" || echo "fzf")"
"$fzf_cmd" ${args[@]:-} --inline-info "$@"