nnn: Open directories always in new panes

This commit is contained in:
Peter Cai 2024-04-08 18:56:40 -04:00
parent 3e82da7802
commit cafe6a98a2

View file

@ -6,7 +6,7 @@ fi
pane_id=$(wezterm cli get-pane-direction Right)
if [ -z "$pane_id" ]; then
if [ -z "$pane_id" ] && [ ! -d "$1" ]; then
exec wezterm cli split-pane --right --percent 70 -- nvim "$@"
else
exec wezterm cli spawn -- nvim "$@"