geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

Geany: Let 'Open Selected File' context action jump to :line number (when specified)

Open nomadbyte opened this issue 3 years ago • 0 comments

Geany has a handy action in its editor context menu 'Open Selected File' which will parse text under cursor to get a file-path and then open the file in a new tab. This is very useful when opening some file references like those in include directives etc.

It'd be nice if this action were also able to parse out a specified :line number from the file reference, like:

../geanyvc/src/geanyvc.c:2660

Then it would position the opened file onto the :line number.

This is very much similar how it's often done with source-file references in compilation errors. It saves time locating the line in question. In Geany context this could be helpful also with source-file references when translating po-files.

nomadbyte avatar Nov 19 '20 15:11 nomadbyte