bc693d1375
fzf-file-widget had several mistakes: 1) It was missing zsh -c for the tmux command to run 2) the fsel function wasn't accessible from the shell we spawned in the new tmux pane We solved the second issue by converting the function to an executable fzf-fsel. We also patched the bash key bindings to make use of that executable. While we were at it, we improved the template by setting wrksrc correctly and cd'ing in pre_build.
18 lines
506 B
Diff
18 lines
506 B
Diff
--- shell/key-bindings.bash.orig 2015-04-18 05:12:24.372078942 +0200
|
|
+++ shell/key-bindings.bash 2015-04-18 05:12:49.244078057 +0200
|
|
@@ -1,15 +1,5 @@
|
|
# Key bindings
|
|
# ------------
|
|
-__fsel() {
|
|
- command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
|
- -o -type f -print \
|
|
- -o -type d -print \
|
|
- -o -type l -print 2> /dev/null | sed 1d | cut -b3- | fzf -m | while read item; do
|
|
- printf '%q ' "$item"
|
|
- done
|
|
- echo
|
|
-}
|
|
-
|
|
if [[ $- =~ i ]]; then
|
|
|
|
__fsel_tmux() {
|