*: Update and add TODOs
This commit is contained in:
@@ -128,6 +128,10 @@ typeset -A fzf_opts=(
|
||||
ctrl-d half-page-down
|
||||
ctrl-u half-page-up
|
||||
ctrl-t toggle-track
|
||||
# automatically track but first on backspace
|
||||
# TODO: this does not work as bspace is executed after backward-eof it seems
|
||||
# backward-eof toggle-track
|
||||
# bspace track+backward-delete-char
|
||||
)
|
||||
FZF_DEFAULT_OPTS=" --bind ${(@*kj:,:)fzf_opts/(#m)*/$MATCH:$fzf_opts[$MATCH]}"
|
||||
export FZF_DEFAULT_OPTS
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
#
|
||||
# Same for rebase (as `git rebase dev feature` switches to `feature`):
|
||||
# % git-checkout-worktree feature <<<"git rebase dev"
|
||||
#
|
||||
#
|
||||
# TODO: The git alias version seems to break with the same arguments that the
|
||||
# zsh native one works with.
|
||||
# TODO: Supplying a flag like --no-checkout breaks the naming of the worktree
|
||||
|
||||
emulate -L zsh -o err_return -o no_unset
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
## Created: 2020-09-13
|
||||
##
|
||||
## Completely remove a git submodule.
|
||||
#
|
||||
# TODO: Fix for nested submodules
|
||||
|
||||
local toplevel
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
## A TUI for git-log using fzf.
|
||||
## Displays git-log in fzf and git-show as preview command for each commit.
|
||||
|
||||
# TODO: preview breaks when files were passed but they were renamed and have a
|
||||
# different name at the point of this commit
|
||||
|
||||
# extendedglob is necessary for the expansion of the binds array
|
||||
emulate -L zsh -o extendedglob
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user