mirror of
https://github.com/turtlebasket/env.git
synced 2026-03-04 11:34:27 -08:00
modify nvim launcher scripts
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
# 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
|
||||
@@ -14,4 +19,3 @@ on run {input, parameters}
|
||||
end tell
|
||||
end tell
|
||||
end run
|
||||
|
||||
9
scripts/NvimLauncherKitty.applescript
Normal file
9
scripts/NvimLauncherKitty.applescript
Normal 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
|
||||
Reference in New Issue
Block a user