diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2020-01-17 14:41:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 14:41:23 -0300 |
commit | 8f2bc5f7e770921e20165babf17b5c8f7675c8dc (patch) | |
tree | 2379cfc3661051a571914783c1e71dad5f0dd6fa | |
parent | ac39ac630c0feab38b2f8a05b49d2feff9ed0147 (diff) |
Fish: fix widget (#174)v0.17.1
Fixes #170 and #171
-rwxr-xr-x | navi | 2 | ||||
-rw-r--r-- | navi.plugin.fish | 2 | ||||
-rw-r--r-- | src/docstring.txt (renamed from docstring.txt) | 0 | ||||
-rw-r--r-- | src/opts.sh | 2 |
4 files changed, 3 insertions, 3 deletions
@@ -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 "$@" diff --git a/navi.plugin.fish b/navi.plugin.fish index ddb6079..645dffd 100644 --- a/navi.plugin.fish +++ b/navi.plugin.fish @@ -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 diff --git a/docstring.txt b/src/docstring.txt index 9ffef7c..9ffef7c 100644 --- a/docstring.txt +++ b/src/docstring.txt diff --git a/src/opts.sh b/src/opts.sh index 92455fa..a1825c6 100644 --- a/src/opts.sh +++ b/src/opts.sh @@ -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" } |