Page MenuHome
Paste P835

Rename 'operator' -> 'command'
ActivePublic

Authored by Campbell Barton (campbellbarton) on Nov 26 2018, 9:37 AM.
Tags
None
Tokens
"Like" token, awarded by billreynish.
commit e79ededc763e177add87e052c24d2926f813321f
Author: Campbell Barton <ideasman42@gmail.com>
Date: Mon Nov 26 19:25:55 2018 +1100
UI: Rename 'operator' to 'command' in UI text
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 4fc2b12e950..609eebb64a6 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -814,11 +814,11 @@ class TOPBAR_MT_edit(Menu):
layout.separator()
- layout.operator("screen.redo_last", text="Adjust Last Operation...")
+ layout.operator("screen.redo_last", text="Adjust Last Command...")
layout.separator()
- layout.operator("wm.search_menu", text="Operator Search...", icon='VIEWZOOM')
+ layout.operator("wm.search_menu", text="Command Search...", icon='VIEWZOOM')
layout.separator()
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 2305ce8f5fe..85e7c3e79d3 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -3404,7 +3404,7 @@ static void SCREEN_OT_redo_last(wmOperatorType *ot)
{
/* identifiers */
ot->name = "Redo Last";
- ot->description = "Display menu for last action performed";
+ ot->description = "Display menu for last command performed";
ot->idname = "SCREEN_OT_redo_last";
/* api callbacks */
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index e0bd48dfec1..f0e3cad59be 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1654,7 +1654,7 @@ static void WM_OT_search_menu(wmOperatorType *ot)
{
ot->name = "Search Menu";
ot->idname = "WM_OT_search_menu";
- ot->description = "Pop-up a search menu over all available operators in current context";
+ ot->description = "Pop-up a search for all available commands in the current context";
ot->invoke = wm_search_menu_invoke;
ot->exec = wm_search_menu_exec;

Event Timeline

Agree with this.

In short:

Operator: Internal implementation, for use by commands, tools or scripts
Command: Something that immediately performs a modification - eg Subdivide, Remove Doubles, etc
Tool: Something that stays active - Move Tool, Spin Tool etc