Registered Member
|
Hi there
At work we are using Nedit (http://www.nedit.org/) text editor. The main reason for that is its ability to open a text file which path is given in opened text. For example if we have this part of text
then selecting /directory/textfile.cpp text from that document and then pressing CNTRL+Y key combination we will open textfile.cpp document in a new tab. This is a very helpful feature especially when you always have to open those documents, look inside and change them... So my question is this: Is it possible to do the same thing in Kate text editor? Thanks |
Global Moderator
|
I don't think it exists right now, but you can probably easily write a python plugin or something, or even hack a 3-line shellscript with the dbus interface.
Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
well im not a python programmer,,,
|
Global Moderator
|
Then you can of course also write the feature in C++
Or submit a wish on bugs.kde.org.
I'm working on the KDevelop IDE.
|
Registered Member
|
heheee,,, it is easy to say ahahahha yes i do program on c++ but i never participated in big projects like this,,,
let see what others will say... thank you very much for your reply |
Registered Member
|
Well.... according to Kate mailing list http://lists.kde.org/?l=kwrite-devel&r=1&w=2 where i've sent the same question all we have to do is this: http://lists.kde.org/?l=kwrite-devel&m=139276606403545&w=2 (BIG THANKS TO Philipp A)
whit some fixes (replacing commentary.py with source and changing the error message 'File {0} doesn't exist in {1}.' to "File {0} does not exist in {1}.") i've got this
this is a python file with any name you like in the directory ~/.kde4/share/apps/kate/pate/ NOTE you have to enable python plugins (see pictures below) ... It works nice,,, hope to see this kind of functionality built-in Thank you very much |
Administrator
|
Nice, thanks for sharing the solution you found!
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]