modify nvim launcher scripts

master
michael 2022-08-24 17:36:18 -07:00
parent 27aadfb641
commit c9c8b65abf
2 changed files with 15 additions and 2 deletions

View File

@ -1,8 +1,13 @@
# Modified from: https://gist.github.com/charlietran/43639b0f4e0a01c7c20df8f1929b76f2?permalink_comment_id=2737814#gistcomment-2737814
# From: https://gregrs-uk.github.io/2018-11-01/open-files-neovim-iterm2-macos-finder/
# Instructions:
# - Create new application in Automator
# - Add "run applescript" step
# - Paste in the below script
# From: https://gregrs-uk.github.io/2018-11-01/open-files-neovim-iterm2-macos-finder/
# Instructions:
# - Create new application in Automator
# - Add "run applescript" step
# - Paste in the below script
on run {input, parameters}
set myPath to POSIX path of input
@ -14,4 +19,3 @@ on run {input, parameters}
end tell
end tell
end run

View File

@ -0,0 +1,9 @@
# Based on the iTerm script
on run {input, parameters}
set myPath to POSIX path of input
set cmd to "/opt/homebrew/bin/nvim -p " & quote & myPath & quote
tell application "System Events" to tell process "kitty"
click menu item "New Tab" of menu "Shell" of menu bar 1
end tell
end run