Note that the first time you launch there may be a security popup saying iTermOpenHereScript wants access. Check iTermOpenHereScript and Add Shortcut (e.g. Add the keyboard shortcut under System Preferences -> Keyboard -> Shortcuts -> Services under the General section.Save if Automator tries to save to iCloud drive, better to save locally - save as iTermOpenHereScript.workflow to the Desktop and then move it to ~/Library/Services.Paste the script from AppleScript section below.Workflow receives Automatic (Nothing) in any application.Click Library -> Utilities and double click Run AppleScript.Run Automator, File -> New and choose Quick Action.the current working Folder of a focused Finder window - via keyboard shortcut This is only active when a Folder is currently selected in a Finder window that has focus. But also make sure the keyboard Shortcut is unique and not already assigned somewhere else. Note that sometimes macOS doesn't register a new keyboard Shortcut assignment immediately and may even require an OS restart to get it working. You just have to check it and Add Shortcut (e.g. Starting sometime with iTerm2 version 3.x, it puts New iTerm2 Window Here in System Preferences -> Keyboard -> Shortcuts -> Services under the Files and Folders section. To Launch an iTerm2 Window at: a selected Folder in a focused Finder window - via keyboard shortcut The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+. (Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |