![]() Registered Member ![]()
|
I have a cool one for KWrite or any other apps that colorize or highlight script coding.
I was thinking it would be cool to implement a feature that whenever you type a line of code, and forget to place a semicolon at the end of the line, the line will flash as soon as you take the cursor off or hit return until you place the cursor back on that line. This could also be useful for unclosed brackets of all types, my making the unclosed brackets flash. What do you think of this idea? |
![]() Registered Member ![]()
|
Afaik, we are always looking for new ideas for all apps (which is the primary purpose of the Brainstorm forum).
As for these particular ideas, I don't think a lot of people would go for flashing lines/characters in kwrite. On the other hand kwrite does have an icon border where you can put for instance an error icon saying this line is missing a semi-colon, or this line has an unmatched brace. My main concerns are that such error checks are highly language-specific, and in allowing such checks you would have to define some kind of boundary of which checks to allow and which not to allow, or else the number of checks would explode.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
![]() Registered Member ![]()
|
Generally, it's bad practice to use flashy things as they can induce seizures in some people.
Keep the ideas coming though... |
![]() Registered Member ![]()
|
What about being able to append to each line? find and replace can't append at the end of each line.
All answers are all replies, but not all replies are answers.
|
![]() Registered Member ![]()
|
It can. Ctrl+R Find: $ (dollar sign) Replace: whatever you want to append Mode: Regular expressions (or regexp, regex — I don't know how it is called in English version) Replace all Appending at end of each non-empty line would be a bit harder, but still possible. For most complex replacements you can use sed or perl from command line. It's Unix way - do one thing and do it good.
Best regards
Mirosław Zalewski |
![]() Registered Member ![]()
|
not by much: Find: (.)$ Replace: \1whatever you want to append That is you are replacing the last character of every line with itself (the "\1" in the replace) and whatever you want to append. (fwiw, Prepending is similar only use the '^' character to represent the beginning of the line)
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell