mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-09 16:42:54 +03:00
Ticket #1489 (indent block)
added bindings for shift block 'EditShiftBlockLeft', 'EditShiftBlockRight' EditShiftBlockLeft, EditShiftBlockRight - force move block without option_persistent_selections checking Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
parent
5ac43584cc
commit
359c9406d1
@ -2991,6 +2991,14 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
|
|||||||
edit_block_move_cmd (edit);
|
edit_block_move_cmd (edit);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CK_Shift_Block_Left:
|
||||||
|
if (edit->mark1 != edit->mark2)
|
||||||
|
edit_move_block_to_left (edit);
|
||||||
|
break;
|
||||||
|
case CK_Shift_Block_Right:
|
||||||
|
if (edit->mark1 != edit->mark2)
|
||||||
|
edit_move_block_to_right (edit);
|
||||||
|
break;
|
||||||
case CK_XStore:
|
case CK_XStore:
|
||||||
edit_copy_to_X_buf_cmd (edit);
|
edit_copy_to_X_buf_cmd (edit);
|
||||||
break;
|
break;
|
||||||
|
@ -44,6 +44,9 @@ EditRemove = f8
|
|||||||
EditUnmark =
|
EditUnmark =
|
||||||
EditFind = f7
|
EditFind = f7
|
||||||
|
|
||||||
|
EditShiftBlockLeft =
|
||||||
|
EditShiftBlockRight =
|
||||||
|
|
||||||
EditPageUpHighlight = shift-pgup
|
EditPageUpHighlight = shift-pgup
|
||||||
EditPageDownHighlight = shift-pgdn
|
EditPageDownHighlight = shift-pgdn
|
||||||
EditLeftHighlight = shift-left
|
EditLeftHighlight = shift-left
|
||||||
|
@ -43,6 +43,9 @@ EditRemove = f8
|
|||||||
EditUnmark =
|
EditUnmark =
|
||||||
EditFind = f7
|
EditFind = f7
|
||||||
|
|
||||||
|
EditShiftBlockLeft =
|
||||||
|
EditShiftBlockRight =
|
||||||
|
|
||||||
EditPageUpHighlight = shift-pgup
|
EditPageUpHighlight = shift-pgup
|
||||||
EditPageDownHighlight = shift-pgdn
|
EditPageDownHighlight = shift-pgdn
|
||||||
EditLeftHighlight = shift-left
|
EditLeftHighlight = shift-left
|
||||||
|
@ -60,6 +60,8 @@
|
|||||||
#define CK_Unmark 206
|
#define CK_Unmark 206
|
||||||
#define CK_Save_Block 207
|
#define CK_Save_Block 207
|
||||||
#define CK_Column_Mark 208
|
#define CK_Column_Mark 208
|
||||||
|
#define CK_Shift_Block_Left 211
|
||||||
|
#define CK_Shift_Block_Right 212
|
||||||
|
|
||||||
/* search and replace */
|
/* search and replace */
|
||||||
#define CK_Find 301
|
#define CK_Find 301
|
||||||
|
@ -171,6 +171,9 @@ static const name_keymap_t command_names[] = {
|
|||||||
{ "EditParagraphUpAltHighlight", CK_Paragraph_Up_Alt_Highlight },
|
{ "EditParagraphUpAltHighlight", CK_Paragraph_Up_Alt_Highlight },
|
||||||
{ "EditParagraphDownAltHighlight", CK_Paragraph_Down_Alt_Highlight },
|
{ "EditParagraphDownAltHighlight", CK_Paragraph_Down_Alt_Highlight },
|
||||||
|
|
||||||
|
{ "EditShiftBlockLeft", CK_Shift_Block_Left },
|
||||||
|
{ "EditShiftBlockRight", CK_Shift_Block_Right },
|
||||||
|
|
||||||
{ "EditXStore", CK_XStore },
|
{ "EditXStore", CK_XStore },
|
||||||
{ "EditXCut", CK_XCut },
|
{ "EditXCut", CK_XCut },
|
||||||
{ "EditXPaste", CK_XPaste },
|
{ "EditXPaste", CK_XPaste },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user