convert to vim9

This commit is contained in:
Jason Swank
2026-01-03 01:59:33 +00:00
parent e285163442
commit 1f444be37a
110 changed files with 311122 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
# A simple wrapper around `zk list` to select & view a note
zkbat() {
filename=$(zk list "$@" --interactive -f jsonl | jq -r .absPath )
filename=$(zk list "$@" --interactive -q -f jsonl | jq -r .absPath )
bat $filename
echo $filename >&2
}

View File

@@ -0,0 +1,6 @@
# A simple wrapper around `zk list` to select & view a note
zkv() {
filename=$(zk list "$@" --interactive -q -f jsonl | jq -r .absPath )
less $filename
echo $filename >&2
}

View File

@@ -5,8 +5,9 @@ SAVEHIST=1000
export LANG=en_US.UTF-8
export EDITOR=vim
export VISUAL=${EDITOR}
export PAGER=bat
export PAGER=less
export LESS=RX # R for ANSI color sequences, X to not clear screen on exit
export LESSOPEN="| bat --color=always --style=plain %s"
export XDG_CONFIG_HOME=${HOME}/.config
export FZF_DEFAULT_OPTS="--multi --height=40% --layout=reverse --preview='bat --color=always --style=numbers --line-range=:200 {}'"