diff --git a/dub.json b/dub.json index b8fdf4b..62218cf 100644 --- a/dub.json +++ b/dub.json @@ -12,7 +12,7 @@ "stringImportPaths": ["views"], "dependencies": { - "dlangui": "==0.9.138", + "dlangui": "==0.9.139", "dsymbol": "~>0.2.9", "dcd": "~>0.9.1" }, diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index ac8a8f6..aa0501f 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -705,7 +705,10 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL MenuItem editItem = new MenuItem(new Action(2, "MENU_EDIT")); editItem.add(ACTION_EDIT_COPY, ACTION_EDIT_PASTE, - ACTION_EDIT_CUT, ACTION_EDIT_UNDO, ACTION_EDIT_REDO, ACTION_FIND_TEXT, ACTION_EDITOR_TOGGLE_BOOKMARK); + ACTION_EDIT_CUT, ACTION_EDIT_UNDO, ACTION_EDIT_REDO); + editItem.addSeparator(); + editItem.add(ACTION_EDITOR_FIND, ACTION_EDITOR_FIND_NEXT, ACTION_EDITOR_FIND_PREV, ACTION_EDITOR_REPLACE, ACTION_FIND_TEXT, ACTION_EDITOR_TOGGLE_BOOKMARK); + editItem.addSeparator(); MenuItem editItemAdvanced = new MenuItem(new Action(221, "MENU_EDIT_ADVANCED")); editItemAdvanced.add(ACTION_EDIT_INDENT, ACTION_EDIT_UNINDENT, ACTION_EDIT_TOGGLE_LINE_COMMENT, ACTION_EDIT_TOGGLE_BLOCK_COMMENT); editItem.add(editItemAdvanced); @@ -913,6 +916,10 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL case IDEActions.FileSaveAll: case IDEActions.FileSaveAs: case IDEActions.GotoLine: + case EditorActions.Find: + case EditorActions.FindNext: + case EditorActions.FindPrev: + case EditorActions.Replace: a.state = (currentEditor !is null && !_currentBackgroundOperation) ? ACTION_STATE_ENABLED : ACTION_STATE_DISABLE; return true; case IDEActions.ViewToggleWhitespaceMarks: diff --git a/views/VERSION b/views/VERSION index 6d9bb9b..00cd085 100644 --- a/views/VERSION +++ b/views/VERSION @@ -1 +1 @@ -v0.7.84 \ No newline at end of file +v0.7.85 \ No newline at end of file diff --git a/views/res/i18n/ru.ini b/views/res/i18n/ru.ini index 9ed278b..37a1ad2 100644 --- a/views/res/i18n/ru.ini +++ b/views/res/i18n/ru.ini @@ -51,8 +51,8 @@ MENU_EDIT_INDENT=Увеличить отступ MENU_EDIT_UNINDENT=Уменьшить отступ MENU_EDIT_TOGGLE_LINE_COMMENT=Закомментировать строку MENU_EDIT_TOGGLE_BLOCK_COMMENT=Закомментировать блок -MENU_EDIT_ADVANCED=Продвинутые... -MENU_EDIT_PREFERENCES=&Настройки +MENU_EDIT_ADVANCED=Дополнительно... +MENU_EDIT_PREFERENCES=&Настройки... MENU_VIEW=&Вид MENU_VIEW_SHOW_WHITESPACE_MARKS=Видимые пробелы и табы