mirror of https://github.com/turtlebasket/env
modify nvim launcher scripts
parent
27aadfb641
commit
c9c8b65abf
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue