Fish: fix widget (#174)

Fixes #170 and #171
This commit is contained in:
Denis Isidoro 2020-01-17 14:41:23 -03:00 committed by GitHub
parent ac39ac630c
commit 8f2bc5f7e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 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.17.0"
VERSION="0.17.1"
NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@"

View file

@ -1,7 +1,7 @@
function navi-widget -d "Show cheat sheets"
begin
stty sane
env NAVI_USE_FZF_ALL_INPUTS=true navi --print query (commandline) | perl -pe 'chomp if eof' | read -lz result
env NAVI_USE_FZF_ALL_INPUTS=true navi --print (commandline) | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result
end
commandline -f repaint

View file

@ -2,7 +2,7 @@
set -euo pipefail
opts::extract_help() {
local -r file="${NAVI_HOME}/docstring.txt"
local -r file="${NAVI_HOME}/src/docstring.txt"
cat "$file"
}