https://bugs.kde.org/show_bug.cgi?id=314395
Christoph Cullmann <cullm...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In| |5.61.0 Resolution|--- |FIXED Latest Commit| |https://commits.kde.org/kte | |xteditor/01526bfcb7e811dbc7 | |87f2fdf2924f30d7f8324c Status|CONFIRMED |RESOLVED --- Comment #31 from Christoph Cullmann <cullm...@kde.org> --- Git commit 01526bfcb7e811dbc787f2fdf2924f30d7f8324c by Christoph Cullmann, on behalf of Ahmad Samir. Committed on 08/07/2019 at 20:59. Pushed by cullmann into branch 'master'. Add an action to insert a non-indented newline Summary: Currently pressing Enter to insert a new line, KTextEditor will, in most cases, indent the new line with the same indentation as the previous line, which makes sense when writing code. But there is a viable use case where a user may want to insert a new line to separate blocks of code that have different context/functionality inside a function, in that case that line should be non-indented, having trailing spaces on an empty line isn't good, IMHO. The new action can be triggered with Ctrl+Enter. And the current default behaviour is preserved. FIXED-IN: 5.61.0 Test Plan: - Open a file with some C++ code, put the cursor at the end of an indented line, and press Enter to insert a new line - Note that the new line is indented - Repeat the first step, but press Ctrl+Enter; the newly inserted line has no indentation Reviewers: #ktexteditor, cullmann, dhaumann Reviewed By: #ktexteditor, cullmann Subscribers: bruns, mickaelbo, kde-frameworks-devel, kwrite-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D22276 M +6 -3 src/document/katedocument.cpp M +3 -1 src/document/katedocument.h M +17 -0 src/view/kateview.cpp M +8 -0 src/view/kateview.h https://commits.kde.org/ktexteditor/01526bfcb7e811dbc787f2fdf2924f30d7f8324c -- You are receiving this mail because: You are watching all bug changes.