Version: (using KDE KDE 3.5.6) Installed from: Ubuntu Packages OS: Linux #include[SHIFT+ENTER] puts a # at the beginning of the next line. #)(!@$foogoo[SHIFT+ENTER] puts #)(!@$ at the beginning of the next line. Why? This is unexpected behaviour. If this is a feature it should be documented as one with explanation of how it is useful and I did not find any such mention in the shortcuts page in the Kate documentation. I should note that this happens only if the line starts with a non-alphanumeric and only for the first continuous sequence of non-alphanumerics. i.e. A#[SHIFT+ENTER] 3#[SHIFT+ENTER] produce nothing and #!@)f#%!*[SHIFT+ENTER] repeats only #!@) Anyhow, it is unwanted behaviour, IMO.
Right, it's undocumented and does exactly what you said: copy non-alphanumerics. It's useful if you write comments: // text<shift+enter> // continue comment here /** * <shift+enter> * continue text here We can remove that, of course... You are the first one who complains about it. How many users are out there who find it useful?
/me loves that feature
I have no objection to this feature existing. I realize it can be very useful. I could even start using it myself. Please then change this to a request for the documentation to mention this feature. Also this thing should be visible in the Configure Shortcuts so that I can change Shift+Enter to something else. Thank you.
Agreed. I even think this should be done via scripts, once we can assign shortcuts to jscripts...
*** Bug 171779 has been marked as a duplicate of this bug. ***
if this is intended and wanted, should we close the bug? invalid or wontfix? or maybe worksforme? :-)
action items: 1. use shortcut + normal function in kate-view for this instead of hard-coded in void KateViewInternal::keyPressEvent( QKeyEvent* e ) 2. add it to the docbook documentation
SVN commit 868385 by dhaumann: - "insert smart newline" is an action now - default shortcut: SHIFT+Enter/Return - cleaner code in do SmartNewline BUG: 171779 M +17 -2 kateview.cpp M +1 -0 kateview.h M +20 -28 kateviewinternal.cpp M +1 -0 kateviewinternal.h SVN commit 868387 by dhaumann: document smart newline (is that the correct place?) M +4 -0 fundamentals.docbook
Now you can disable this feature by removing the shortcuts in the "configure shortcuts" dialog. The action is called "Insert Smart Newline"