Skip to content

bunch of improvements for clipboard#3206

Merged
jmcouffin merged 2 commits intopyrevitlabs:developfrom
Wurschdhaud:fix-3204
Mar 31, 2026
Merged

bunch of improvements for clipboard#3206
jmcouffin merged 2 commits intopyrevitlabs:developfrom
Wurschdhaud:fix-3204

Conversation

@Wurschdhaud
Copy link
Copy Markdown
Contributor

Description

  • fix safe get parameter
  • handle esc for rectangle select
  • paste selection with cat flag
  • autoselect when using selectfromlist
  • smartbutton init add return (still broken, but at least semantically correct)

Checklist

Before submitting your pull request, ensure the following requirements are met:

  • Code follows the PEP 8 style guide.
  • Code has been formatted with Black using the command:
    pipenv run black {source_file_or_directory}
  • Changes are tested and verified to work as expected.

Related Issues

If applicable, link the issues resolved by this pull request:

- handle esc for rectangle select
- paste selection with cat flag
- autoselect when using selectfromlist
- smartbutton init add return (still broken, but at least semantically correct)
@devloai
Copy link
Copy Markdown
Contributor

devloai bot commented Mar 30, 2026

Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔
Please upgrade your plan or buy additional credits from the subscription page.

@jmcouffin jmcouffin requested a review from Copilot March 30, 2026 20:22
@jmcouffin jmcouffin added the Enhancement Enhancement request [class->Improved #{number}: {title}] label Mar 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses several usability and correctness issues in the Match History Clipboard tool within the pyRevitTools extension, focusing on safer parameter retrieval, improved selection/paste behavior, and better UI state updates.

Changes:

  • Updates safe_get_parameter to better handle BuiltIn vs shared/project parameters and add exception safety.
  • Improves paste workflows: handle ESC during rectangle selection and apply category filtering to “paste from selection”.
  • Auto-selects newly added history items after using the parameter picker, and updates smartbutton init semantics.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/edit1.stack/Match.splitpushbutton/Match History Clipboard.smartbutton/script.py Adjusts smartbutton initialization behavior (icon init logic commented out; returns True).
extensions/pyRevitTools.extension/lib/match/panel.py Auto-selects newly added history items after select_parameters and refreshes UI enabled-state.
extensions/pyRevitTools.extension/lib/match/match_utils.py Refines parameter lookup, adds ESC handling for rectangle pick, and applies category filtering for paste-from-selection.

@jmcouffin jmcouffin merged commit cb044ba into pyrevitlabs:develop Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+0549-wip

@Wurschdhaud Wurschdhaud deleted the fix-3204 branch March 31, 2026 07:58
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1533-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1536-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1556-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 6.2.0.26090+1754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Enhancement request [class->Improved #{number}: {title}]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Match History Clipboard minor bugs

3 participants