Safari 8.0 does: Press and hold the Control key for a moment while you’re editing the location and you’ll see the search icon turn into an icon indicating that it’s interpreting the input as (part of) a URL instead of performing a search. The label “Search selected search engine” next to your text will change to “Go to Site” and the ‘Go to Site “your text”’ menu item in the completions list will be selected. Typing Control+Return will navigate there.
By the way, you can use Control+N (next) and Control+P (previous) to navigate through the completions list using the keyboard. (These are emacs-style navigation key bindings.)
I would recommend using a 'boot' shell script to do most of what you're describing and bind it to an iTerm2 profile. You can configure a profile to have a specific window arrangement (it is a feature of iTerm2), see iTerm2 > Preferences > Arrangements to save your current arrangement as a preset.
Then, make a new profile that executes a startup script and applies the aforementioned window arrangement as its default arrangement (iTerm2 > Profiles > Open Profiles > Edit Profiles). Ideally, you would bind launching this profile to a shortcut, like Command + Control + D
for one-keystroke access.
In said profile, under the General Tab > Command section, the startup command should be a shell script akin to below:
I don't know why it's necessary for you to open up the sublimetext frontend and backend in different terminal windows. Whenever you run subl
, it opens the app as a daemon, as subl
is just a python wrapper that launches the OS X app.
Sample rough startup.sh
script I scaffolded up for ya:
#!/usr/bin/env bash
cd ~/to/project/backend
open . # open Finder window of backend folder
subl . # open SublimeText instance of backend folder
cd ~/to/project/frontend
open . # open Finder window of frontend folder
subl . # open SublimeText instance of frontend folder
# Launch chrome and navigate to http://localhost:8000/ or wherever your dev location is
open -a "/Applications/Google Chrome.app" 'http://localhost:8000/'
echo 'COME AT ME BRO'
You should change the settings on SublimeText to not remember your window/tab arrangements from previous launch instead of attempting to script it to close all of your windows from before.
Alternatively, you could have subl
open a native, .sublimetext-workspace
or .sublimetext-project
file and achieve more precise results than with subl .
Best Answer
Yes, this is possible. The two best options for stitching together Mac applications are AppleScript and Automator.
Given your steps, consider exploring the included Automator application: Applications > Automator.app
Apple's Mac Basics: Automator support note is a good starting point.
The following Actions are likely to help: