nnn: Open directories always in new panes
This commit is contained in:
parent
3e82da7802
commit
cafe6a98a2
1 changed files with 1 additions and 1 deletions
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue