D
D
Denis Savitsky2013-09-30 12:54:53
Work organization
Denis Savitsky, 2013-09-30 12:54:53

Opening a file line from the console, by clicking on path?

There is a feature in Mac OS X (for sublime, at least): opening a file on the desired line by cmd+click from the console.
For example:

# ./spec/models/faye_task_spec.rb:60:in `block (5 levels) in <top (required)>'

We click on the path and the file opens on the 60th line
How to do the same in linux?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2013-09-30
@qweewq

vim +60 ./spec/models/faye_task_spec.rb

B
barker, 2013-09-30
@barker

What is a "console"? How can you click on it? You are talking about a specific terminal emulator that has certain logic. The answer to your question is to find a program (terminal emulator) with similar functionality. And what does the text editor (sublime text?) have to do with it, but it’s not very clear ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question