D5644: Adds option to pass cursor line and column to external scripts

Pedro Arthur P. R. Duarte noreply at phabricator.kde.org
Fri Apr 28 20:12:10 UTC 2017


pedroarthurp created this revision.
Restricted Application added a subscriber: kdevelop-devel.

REVISION 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.

REPOSITORY
  R33 KDevPlatform

REVISION DETAIL
  https://phabricator.kde.org/D5644

AFFECTED FILES
  plugins/externalscript/externalscriptjob.cpp

To: pedroarthurp
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170428/f5e85289/attachment.html>


More information about the KDevelop-devel mailing list