Ticket #1945 (new editor action - select all/mark all)

add new editor action - 'Mark all', allow select all text in the current file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2010-01-16 12:56:14 +00:00
parent 4c6b5fc569
commit 3d184b4be6
5 changed files with 9 additions and 0 deletions

View File

@ -2925,6 +2925,10 @@ edit_execute_cmd (WEdit *edit, unsigned long command, int char_for_insertion)
column_highlighting = 1;
edit_mark_cmd (edit, 0);
break;
case CK_Mark_All:
edit_set_markers (edit, 0, edit->last_byte, 0, 0);
edit->force |= REDRAW_PAGE;
break;
case CK_Unmark:
if (column_highlighting)
edit_push_action (edit, COLUMN_ON);

View File

@ -41,6 +41,7 @@ EditMark = f3
EditCopy = f5
EditMove = f6
EditRemove = f8
EditMarkAll =
EditUnmark =
EditFind = f7

View File

@ -40,6 +40,7 @@ EditMark = f3
EditCopy = f5
EditMove = f6
EditRemove = f8
EditMarkAll =
EditUnmark =
EditFind = f7

View File

@ -63,6 +63,7 @@
#define CK_Column_Mark 208
#define CK_Shift_Block_Left 211
#define CK_Shift_Block_Right 212
#define CK_Mark_All 213
/* search and replace */
#define CK_Find 301

View File

@ -84,6 +84,7 @@ static name_keymap_t command_names[] = {
{ "EditCopy", CK_Copy },
{ "EditMove", CK_Move },
{ "EditRemove", CK_Remove },
{ "EditMarkAll", CK_Mark_All },
{ "EditUnmark", CK_Unmark },
{ "EditSaveBlock", CK_Save_Block },
{ "EditColumnMark", CK_Column_Mark },
@ -92,6 +93,7 @@ static name_keymap_t command_names[] = {
{ "EditReplace", CK_Replace },
{ "EditReplaceAgain", CK_Replace_Again },
{ "EditCompleteWord", CK_Complete_Word },
#if 0
{ "EditDebugStart", CK_Debug_Start },
{ "EditDebugStop", CK_Debug_Stop },