Support backgrounding ascii in vifm + tmux
This commit is contained in:
parent
124848c8c0
commit
34a980fb9f
|
@ -29,6 +29,12 @@ open_file() {
|
||||||
html)
|
html)
|
||||||
chromium "$1" &>/dev/null &
|
chromium "$1" &>/dev/null &
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
if [[ -n "$TMUX" ]] && file "$1" | grep -iq 'ascii'; then
|
||||||
|
tmux new-window -c "#{pane_current_path}"
|
||||||
|
sleep .2 # Let bash login, otherwise command won't get sent
|
||||||
|
tmux send-keys "vi $1" Enter
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue