Case-insensitive wiki-searching
This commit is contained in:
parent
2e60415325
commit
bb30274e25
|
@ -8,7 +8,7 @@ function wf {
|
||||||
if [[ "$@" != "" ]]; then
|
if [[ "$@" != "" ]]; then
|
||||||
local fzf_args="-q $@"
|
local fzf_args="-q $@"
|
||||||
fi
|
fi
|
||||||
echo ~/wiki/"$(rg --with-filename --no-heading . ~/wiki | sed 's@/home/sage/wiki/@@' | fzf $fzf_args -1 --preview='bat ~/wiki/$(echo {} | sed "s/:.*//")' | sed 's/:.*//')"
|
echo ~/wiki/"$(rg --with-filename --no-heading . ~/wiki | sed 's@/home/sage/wiki/@@' | fzf -i $fzf_args -1 --preview='bat ~/wiki/$(echo {} | sed "s/:.*//")' | sed 's/:.*//')"
|
||||||
}
|
}
|
||||||
|
|
||||||
function ws {
|
function ws {
|
||||||
|
@ -19,7 +19,7 @@ function ws {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ww {
|
function ww {
|
||||||
ws $(rg --no-line-number --no-filename . ~/wiki | sed 's/[^a-zA-Z0-9]\+/\n/g' | grep -v "^$" | sort -f | uniq -ci | sort -hr | fzf | cut -c 9-)
|
ws $(rg --no-line-number --no-filename . ~/wiki | sed 's/[^a-zA-Z0-9]\+/\n/g' | grep -v "^$" | sort -f | uniq -ci | sort -hr | fzf -i | cut -c 9-)
|
||||||
}
|
}
|
||||||
|
|
||||||
alias cat="bat"
|
alias cat="bat"
|
||||||
|
|
Loading…
Reference in New Issue