Skip to content

Commit

Permalink
Merge pull request #1 from xhd4/master
Browse files Browse the repository at this point in the history
fixing nvim to open a file in a new tab
  • Loading branch information
trevarj authored Mar 29, 2023
2 parents 2f4818d + 272c184 commit bb4e470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ton
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ for pane in $(tmux list-panes -F '#{pane_index} #{pane_pid}'); do
for sock in $LISTEN_SOCKS; do
if [[ $sock == *$(pgrep -P "$pid" vim)* ]]; then
# Open on remote!
nvim --server "$sock" --remote-send "<esc>:e $FILE<cr>"
nvim --server "$sock" --remote-send "<esc>:tabnew $FILE<cr>"
nvim --server "$sock" --remote-send "<esc>:call cursor($LINE, $COLUMN)<cr>"
tmux selectp -t "$id"
exit 0
Expand Down

0 comments on commit bb4e470

Please sign in to comment.