Skip to content

Instantly share code, notes, and snippets.

@brake
brake / Iterm2_NeoVIM.scpt
Created June 28, 2023 15:52
iTerm2 open files in neovim opened in new tab
on run argv
# seem to need the full path at least in some cases
set nvimCommand to "/usr/local/bin/nvim "
set filepaths to ""
if argv is not {} then
repeat with currentFile in argv
set filepaths to filepaths & quoted form of POSIX path of currentFile & " "
end repeat