Kate searching: Please help with beta testing! 2007-09-03
Hello again! The search and replace functionality of Kate/KWrite now is in a usable state. I just fixed another two bugs and we are now at the point where bugs are found by real life application.
So what I’m asking for is if you have checked out Kate/KWrite anyway please check if it can handle your daily search and replace tasks.
As an appetizer creating setters from class members should be no problem:
Search: “^(.+) (m_(.+));”
Replace: “void Some::set\3(\1 \3) {\n \2 = \3;\n}\n”
Input:
char * m_name;
int m_count;
Output:
void Some::setname(char * name) {
m_name = name;
}void Some::setcount(int count) {
m_count = count;
}
Yes, the camel case is broken but there is a solution to that (\U, \L and \E as in EmEditor) that I hope to find time for later.
Now throw bug reports at me! 🙂









I have two things I’m missing in my current Kate:
– inserting tabs with \t in the replace string
– multi-line search and replace
Are those things allready covered in your version? I hope so, cause these things keep driving me back to vi and editplus (on windows). Apart from that I really really like Kate.
Yes, they are both covered.
[…] this new tool at hand we can now solve the camel case issue we had last time when generating setters from class […]
For escaping, I would suggest \x027 and similar,
but I don’t know if other languages/editors
use that, I think perl does 🙂
Another feature, I would like (sorry to bother you again) 😛
is indent’ing source code.
ctrl+a, to indent everything by 1.
ctrl+a, shift+ to unindent everything by 1.
alt+e,f,t: alt+(E)dit,(F)ormat,(T)rim trailing spaces
alt+e,f,a: alt+(E)dit,(F)ormat,T(a)bs to spaces
alt+e,f,s: alt+(E)dit,(F)ormat,(S)paces to t(a)bs
alt+e,f,L: alt+(E)dit,(F)ormat,(L)eading spaces to tabs
(as you can see the shortcut are mostly easy to type very fast, since the keys are very close!
Thumbs on alt, middle finger on e, left index on f,
annular on s, little on a, “right index” on L =)
ctrl+u: To change selected text to uppercase
ctrl+L: To (L)owercase
Fred.
Last post should read like this:
ctrl+a, (tab) to indent everything by 1.
ctrl+a, shift+(tab) to unindent everything by 1.