# HG changeset patch # User Torsten # Date 1512816619 -3600 # Node ID a7bc68ce08f19792d7f5233b4b382cc1b97ac79a # Parent 583e6447d7dc5274c5fe8e20bba32bf2126ba3fa add new smart code indentation to the shortcut-manager * shortcut_manager.cc (do_init_data): rename rigid (un)intend actions, add new smart intend action diff -r 583e6447d7dc -r a7bc68ce08f1 libgui/src/shortcut-manager.cc --- a/libgui/src/shortcut-manager.cc Fri Dec 08 15:46:04 2017 -0800 +++ b/libgui/src/shortcut-manager.cc Sat Dec 09 11:50:19 2017 +0100 @@ -372,16 +372,18 @@ QKeySequence (ctrl_alt + Qt::Key_U)); #if defined (Q_OS_MAC) - init (tr ("Indent Selection"), "editor_edit:indent_selection", + init (tr ("Indent Selection Rigidly"), "editor_edit:indent_selection", QKeySequence (prefix + Qt::Key_Tab)); - init (tr ("Unindent Selection"), "editor_edit:unindent_selection", + init (tr ("Unindent Selection Rigidly"), "editor_edit:unindent_selection", QKeySequence (prefix + Qt::ShiftModifier + Qt::Key_Tab)); #else - init (tr ("Indent Selection"), "editor_edit:indent_selection", + init (tr ("Indent Selection Rigidly"), "editor_edit:indent_selection", QKeySequence (ctrl + Qt::Key_Tab)); - init (tr ("Unindent Selection"), "editor_edit:unindent_selection", + init (tr ("Unindent Selection Rigidly"), "editor_edit:unindent_selection", QKeySequence (ctrl_shift + Qt::Key_Tab)); #endif + init (tr ("Indent Code"), "editor_edit:smart_indent_line_or_selection", + QKeySequence ()); init (tr ("Convert Line Endings to Windows"), "editor_edit:conv_eol_winows", QKeySequence ());