nnn: Open directories always in new panes
This commit is contained in:
parent
3e82da7802
commit
cafe6a98a2
|
@ -6,7 +6,7 @@ fi
|
||||||
|
|
||||||
pane_id=$(wezterm cli get-pane-direction Right)
|
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 "$@"
|
exec wezterm cli split-pane --right --percent 70 -- nvim "$@"
|
||||||
else
|
else
|
||||||
exec wezterm cli spawn -- nvim "$@"
|
exec wezterm cli spawn -- nvim "$@"
|
||||||
|
|
Loading…
Reference in a new issue