summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2020-01-17 14:41:23 -0300
committerGitHub <noreply@github.com>2020-01-17 14:41:23 -0300
commit8f2bc5f7e770921e20165babf17b5c8f7675c8dc (patch)
tree2379cfc3661051a571914783c1e71dad5f0dd6fa
parentac39ac630c0feab38b2f8a05b49d2feff9ed0147 (diff)
Fish: fix widget (#174)v0.17.1
Fixes #170 and #171
-rwxr-xr-xnavi2
-rw-r--r--navi.plugin.fish2
-rw-r--r--src/docstring.txt (renamed from docstring.txt)0
-rw-r--r--src/opts.sh2
4 files changed, 3 insertions, 3 deletions
diff --git a/navi b/navi
index d58d2c0..f935fc7 100755
--- a/navi
+++ b/navi
@@ -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"
}