Adds option to pass cursor line and column to external scripts
ClosedPublic

Authored by pedroarthurp on Apr 28 2017, 8:12 PM.

Details

Summary

This patch adds a way to pass cursor line and column to external scripts. The most straightforward use case is to open the file in vim for making some kind of editing that is unavailable through vi-edit mode. To this end, one would use the following command:

konsole -e vim -c "call cursor(%l, %c)" %f

It will open vim in konsole with vim's cursor in the same line and column of the current document view.

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
pedroarthurp created this revision.Apr 28 2017, 8:12 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptApr 28 2017, 8:12 PM
patrickelectric accepted this revision.Apr 28 2017, 8:13 PM
This revision is now accepted and ready to land.Apr 28 2017, 8:13 PM
brauch accepted this revision.Apr 28 2017, 8:31 PM
brauch added a subscriber: brauch.

LGTM

mwolff accepted this revision.May 3 2017, 10:12 PM
mwolff added a subscriber: mwolff.

do you have commit rights? if not, someone of us needs to commit this for you. In that case, we'll need to know your email address to properly attribute this patch set to you

do you have commit rights?

I have no commit rights. My email is pedroarthur.jedi at gmail.

This revision was automatically updated to reflect the committed changes.