*: Update and add TODOs

This commit is contained in:
2024-01-05 16:20:42 +01:00
parent 5747b6e04c
commit 58243e0510
6 changed files with 24 additions and 2 deletions

View File

@@ -18,8 +18,10 @@ zstyle ":fzf-tab:complete:(${(j:|:)file_commands}):options" fzf-preview
unset {file,dir}_prev_cmd preview_cmd file_commands
# Preview variables
# TODO: Only works with exported values as this is executed in a subshell. Is
# there a way around this? I fear not...
# TODO: Only works with exported values as this is executed in a subshell
# One could execute this beforehand:
#
# eval "$(typeset + | awk '{print "export " $NF}')"
zstyle ':fzf-tab:complete:-parameter-:*' fzf-preview 'typeset -p1 "$word"'
# Move down after selecting and yank with ctrl-y