This plugin tries to find skim based on where it's been installed, and enables its fuzzy auto-completion and key bindings.
This plugin will not install skim
for you. This needs to be done before using.
To use it, add skim.zsh
to the plugins in your zshrc file. The following is an example using zinit:
zinit wait lucid light-mode for \
OMZL::key-bindings.zsh \
OMZL::history.zsh \
OMZP::git \
casonadams/alacritty-shell \
casonadams/skim.zsh \
;
All these settings should go in your zshrc file, before the plugin is loaded.
Set to skim installation directory path:
export SKIM_BASE=/path/to/skim/install/dir
Set default command to use when input is tty:
export SKIM_DEFAULT_COMMAND='<your skim default command>'
If not set, the plugin will try to set it to these, in the order in which they're found:
The plugin default settings lets one toggle the preview window using ?
Set whether to load skim auto-completion:
DISABLE_SKIM_AUTO_COMPLETION="true"
Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C):
DISABLE_SKIM_KEY_BINDINGS="true"