3
  1. For example:

    $ ls -lsa
    4 -rw-r--r--    1 denis     404 Jul 16 18:36 pgadmin.log
    
  2. cmd+click on pgadmin.log

  3. Sublime opens pgadmin.log (if path is 'pgadmin.log:12', it opens it and sets cursor to 12th line).

How to change the App, which opens the file?

  • Why don't you add this as an answer below and (after the grace period) accept it? – nohillside Jul 22 '14 at 7:29
  • 1
    Users with less than 10 reputation can't answer their own question for 8 hours after asking. :( – sadfuzzy Jul 22 '14 at 7:36
  • I've checked my suggestion and it worked: if you try to open a file in Finder, this file will be opened with default Application, assigned to its extension. So, if you change default App for this file, you'll get it while opening file from Terminal by click. – sadfuzzy Jul 22 '14 at 7:37
  • 1
    You got enough reputation now :-) – nohillside Jul 22 '14 at 8:02
2

I've checked my suggestion and it worked: if you try to open a file in Finder, this file will be opened with default Application, assigned to its extension. So, if you change default App for this file, you'll get it while opening file from Terminal by click.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .