![]() ![]() Now you should be able to press your keyboard shortcut in most circumstances to get a new terminal window. But click the button again and you should see your shortcut: Then, scratch your head, because (when I tried it) the Add Shortcut button reappears. Click it and you should see an “Add Shortcut” button:Ĭlick the button and press your preferred keyboard shortcut. (Or launch System Preferences, choose the Keyboard pane, then choose the Shortcuts tab, then choose Services from the left-hand list.) Scroll to the bottom of the right-hand list and find the New Terminal service. Add a new shortcut by clicking on the + button. Open keyboard from Menu and move to Custom Shortcuts. This is a keyboard shortcut, which means: press the control key and the alt key, hold them. ![]() To assign a keyboard shortcut to the quick action, choose the “Services Preferences…” item from the Services menu. 5 Answers Sorted by: 24 You could try creating a custom shortcut for terminal with Ctrl - Alt - T as the assigned keyboard shortcut. And so on.Īfter you click OK in the dialog, Terminal should open a new window. And the first time you use the action while Safari is frontmost, you'll see the dialog. In other words, the first time you use the action while Finder is frontmost, you'll see the dialog. You'll see this dialog once in each application that's frontmost when you use the action. If you click the “New Terminal” menu item, you'll get a dialog box:Ĭlick OK to allow the action to run. erihanse closed this as completed on Mar 22, 2017. jackchammons added discussion question labels on Mar 21, 2017. You should now see the “New Terminal” quick action: Set key binding to open new bash terminal 1797. Then go to the Automator menu (or the app menu in any running application) and open the Services submenu. Save the document with the name “New Terminal”. Set the “Workflow receives” popup to “no input”. (You can type “run applescript” into the search field at the top of the action list to find it.) Here's the AppleScript to paste into the action: on run In the new Automator document, add a “Run AppleScript” action. (In older versions of macOS, use the “Service” template.) Create a document of type “Quick Action”: Last edited by fedebsuse 14th August 2018 at 01:53 PM.I tested the following procedure under macOS Mojave 10.14.6 (18G3020). ![]() The solution outlined in Edit #1 seemed to remove the CTRL+F10 shortcut for right-click menu. In that case the following worked: Browse to a folder, press CTRL+F10 (or, if your keyboard has it, use the 'menu' key, usually next to the right CTRL key on the keyboard). If someone is able to tweak what I've posted to show the full path in the terminal, that would be great.)Ī simpler approach if you don't want to use scripts: My original need for such a solution was due the difficulty in getting the the right-click menu on nautilus to work on folders with many files / subfolders and not enough empty space to right click on (I use the 'list view'). Environment variables can be set to get more details, as mentioned in this link, but I haven't played with them. (I don't see the full path in my terminal. Code: nautilus -q & nautilusNow upon browsing to any directory and pressing the keyboard shortcut should open gnome-terminal in that directory.
0 Comments
Leave a Reply. |