feat(quicknav): Phase 3 — auto-execution logic #322

Closed
opened 2026-02-23 18:50:49 +00:00 by forbes · 0 comments
Owner

Summary

Add context-aware auto-execution so that commands invoked via number keys can run with smart defaults when the context is unambiguous.

Depends on: #320 (Phase 1)

Scope

Auto-execution engine (quicknav/auto_exec.py)

  • Check conditions before entering standard tool mode
  • If conditions are met, execute the command with defaults (task panel still opens for parameter adjustment)

Auto-execute conditions

  1. Pad/Pocket after closed sketch: If the active body has a sketch that was just closed (sketch edit mode exited with a closed profile), pressing the Pad or Pocket command key creates the feature with default parameters
  2. Boolean operations: If exactly two bodies/shapes are selected, boolean commands execute with defaults
  3. Constraint application: If appropriate geometry is pre-selected in Sketcher, constraint commands apply immediately

Mode-entry (default)

  • All commands that don't match auto-execute conditions enter their standard FreeCAD tool mode (identical to clicking the toolbar button)

Deliverable

Pad/Pocket auto-creates after sketch close. Constraints auto-apply on pre-selection. All other commands behave identically to toolbar clicks.

References

  • docs/src/quicknav/SPEC.md — §7 (Auto-Execution Logic)
## Summary Add context-aware auto-execution so that commands invoked via number keys can run with smart defaults when the context is unambiguous. Depends on: #320 (Phase 1) ## Scope ### Auto-execution engine (`quicknav/auto_exec.py`) - Check conditions before entering standard tool mode - If conditions are met, execute the command with defaults (task panel still opens for parameter adjustment) ### Auto-execute conditions 1. **Pad/Pocket after closed sketch:** If the active body has a sketch that was just closed (sketch edit mode exited with a closed profile), pressing the Pad or Pocket command key creates the feature with default parameters 2. **Boolean operations:** If exactly two bodies/shapes are selected, boolean commands execute with defaults 3. **Constraint application:** If appropriate geometry is pre-selected in Sketcher, constraint commands apply immediately ### Mode-entry (default) - All commands that don't match auto-execute conditions enter their standard FreeCAD tool mode (identical to clicking the toolbar button) ## Deliverable Pad/Pocket auto-creates after sketch close. Constraints auto-apply on pre-selection. All other commands behave identically to toolbar clicks. ## References - `docs/src/quicknav/SPEC.md` — §7 (Auto-Execution Logic)
forbes added the enhancement label 2026-02-23 18:50:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#322