Update neovim app, to edit files in vim in iterm2

main
Steffen Rademacker 3 years ago
parent 6a245b6243
commit 9bbbc13d84

@ -7,7 +7,9 @@
<key>AMStayOpen</key>
<false/>
<key>BuildMachineOSBuild</key>
<string>15E8</string>
<string>18A391012</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
@ -40,7 +42,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@ -50,38 +52,55 @@
<key>CFBundleURLTypes</key>
<array/>
<key>CFBundleVersion</key>
<string>419</string>
<string>492</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7C43</string>
<string>11O62d</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<string>10.15.6</string>
<key>DTSDKBuild</key>
<string>15E8</string>
<string>19G49</string>
<key>DTSDKName</key>
<string>macosx10.11internal</string>
<string>macosx10.15internal</string>
<key>DTXcode</key>
<string>0720</string>
<string>1140</string>
<key>DTXcodeBuild</key>
<string>7C43</string>
<string>11O62d</string>
<key>LSMinimumSystemVersion</key>
<string>10.5</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<string>10.8</string>
<key>LSUIElement</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>This workflow needs to control other applications to run.</string>
<key>NSAppleMusicUsageDescription</key>
<string>This workflow needs access to your music to run.</string>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
<key>NSMainNibFile</key>
<string>ApplicationStub</string>
<key>NSCalendarsUsageDescription</key>
<string>This workflow needs access to your calendars to run.</string>
<key>NSCameraUsageDescription</key>
<string>This workflow needs access to your camera to run.</string>
<key>NSContactsUsageDescription</key>
<string>This workflow needs access to your contacts to run.</string>
<key>NSHomeKitUsageDescription</key>
<string>This workflow needs access to your HomeKit Home to run.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This workflow needs access to your microphone to run.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This workflow needs access to your photos to run.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSRemindersUsageDescription</key>
<string>This workflow needs access to your reminders to run.</string>
<key>NSServices</key>
<array/>
<key>NSSiriUsageDescription</key>
<string>This workflow needs access to Siri to run.</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>This workflow needs access to administer this system in order to run.</string>
<key>UTExportedTypeDeclarations</key>
<array/>
<key>UTImportedTypeDeclarations</key>

@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>AMApplicationBuild</key>
<string>419</string>
<string>492</string>
<key>AMApplicationVersion</key>
<string>2.6</string>
<string>2.10</string>
<key>AMDocumentVersion</key>
<string>2</string>
<key>actions</key>
@ -51,7 +51,30 @@
<key>ActionParameters</key>
<dict>
<key>source</key>
<string>on run {input} set the_path to POSIX path of input set cmd to "nvim " &amp; quoted form of the_path tell application "System Events" to set terminalIsRunning to exists application process "Terminal" tell application "Terminal" activate if terminalIsRunning is true then do script with command cmd else do script with command cmd in window 1 end if end tell end run</string>
<string>on run {input, parameters}
set paths to ""
repeat with i from 1 to length of input
set cur to item i of input
set paths to paths &amp; " " &amp; quote &amp; POSIX path of cur &amp; quote
end repeat
set cmd to "vim -p" &amp; paths
tell application "iTerm"
set created to false
if not (exists current window) then
create window with profile "Default"
set created to true
end if
tell current window
if not created then
create tab with profile "Default"
end if
tell current session
activate
write text cmd
end tell
end tell
end tell
end run</string>
</dict>
<key>BundleIdentifier</key>
<string>com.apple.Automator.RunScript</string>
@ -68,15 +91,15 @@
<key>Class Name</key>
<string>RunScriptAction</string>
<key>InputUUID</key>
<string>3526A534-47A2-4C57-BA3E-3FC7004E5ED4</string>
<string>EE815918-C8D4-4CF4-9059-1F0A03408725</string>
<key>Keywords</key>
<array>
<string>Run</string>
</array>
<key>OutputUUID</key>
<string>55CCF874-3A0D-4364-BE1A-BB05F07B364C</string>
<string>E235EDC5-BF18-4ED7-A16A-8DA4A9B13520</string>
<key>UUID</key>
<string>5ECF9CF3-F18A-47C1-A7A9-9F850E413B5A</string>
<string>860D55BA-363F-42F9-91C1-5C6C397D2663</string>
<key>UnlocalizedApplications</key>
<array>
<string>Automator</string>
@ -107,7 +130,7 @@ end run</string>
<key>isViewVisible</key>
<true/>
<key>location</key>
<string>526.000000:316.000000</string>
<string>309.000000:315.000000</string>
<key>nibPath</key>
<string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
</dict>

Loading…
Cancel
Save