|
From: <sv...@va...> - 2010-09-16 19:07:02
|
Author: cerion
Date: 2010-09-16 20:06:52 +0100 (Thu, 16 Sep 2010)
New Revision: 515
Log:
add kate to list of recognised editors
Modified:
trunk/src/objects/valkyrie_object.cpp
Modified: trunk/src/objects/valkyrie_object.cpp
===================================================================
--- trunk/src/objects/valkyrie_object.cpp 2010-09-16 05:57:52 UTC (rev 514)
+++ trunk/src/objects/valkyrie_object.cpp 2010-09-16 19:06:52 UTC (rev 515)
@@ -489,6 +489,12 @@
if ( fname.contains( QRegExp( "^(emacs|gedit|gvim|nano|nedit)[\\W]*" ) ) ) {
argval += " +%n";
}
+ else if ( fname.contains( QRegExp( "^kate[\\W]*" ) ) ) {
+ argval += " --line %n";
+ }
+ else {
+ // TODO: Warning msg: Unknown editor: use flag to have editor take us to the right line: %n is replaced by the line number
+ }
}
}
} break;
|