Skip to content

Instantly share code, notes, and snippets.

@nahurst
Created May 3, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nahurst/d8bda9e638bc8d08ccedd4e51bbca93c to your computer and use it in GitHub Desktop.
Save nahurst/d8bda9e638bc8d08ccedd4e51bbca93c to your computer and use it in GitHub Desktop.
Open to a particular line from iterm

Often when running tests, you'll see output like:

at Context.<anonymous> (tests/domains/MySchoolPage/WishList/SchoolWishListRowLayout-test.jsx:50:58)

If you Cmd+Click on the file path, you can go directly to the line position of the problem by doint the following:

Open iTerm > Preferences > Profiles > (Your Profile) > Advanced > Semantic History Choose "Run command..." Enter something like

/usr/local/bin/mvim +\2 --remote-tab-silent \1

I use MacVim, so this opens to the line number (\2) of the file (\1) in the existing vim window (--remote-tab-silent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment