-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the Trim/Extend Tool to keep the reference line for multiple trim/extend actions #59676
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Thanks for this amazing upgrade! I just added a couple of semi related feature requests. Also I think we should upgrade the tool tip help text to identify the modifier and that segment snapping is required to use the tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful! I'd never taken the time to do that, and yet it was just a few lines of code! Many thanks.
Please can you add tests?
@YoannQDQ A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
19b8224
to
7fd9d80
Compare
7fd9d80
to
3c5b2c1
Compare
@lbartoletti look acceptable to you? |
Yes. Thanks @YoannQDQ |
@YoannQDQ |
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-3_34 release-3_34
# Navigate to the new working tree
cd .worktrees/backport-release-3_34
# Create a new branch
git switch --create backport-59676-to-release-3_34
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick b5f98cb2897f1ec326dd7cdc01da0c3778371517,97bdf48f3a508a4fd97abc7310eae4e556754786,3c5b2c112c4a89263497b9f66718f53f96f75c28
# Push it to GitHub
git push --set-upstream origin backport-59676-to-release-3_34
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_34 Then, create a pull request where the |
@YoannQDQ How about the above suggestion? IMHO this is a valid reason to only use a single modifier. And I don't see the real need to use both, anyway. |
I agree. Which one should we keep though? Shift or Ctrl? Thoughts @baswein? |
I haven't noticed any particular pattern in QGIS that would suggest one over the other. I just don't want people to get used to using one and then have that be a conflict later. So... flipping a coin I vote for Shift. |
I just noticed that the parentheses in your tool tip text are causing that portion of text to not be displayed on hover. |
I just opened a PR that fixes the issue. |
Description
Pressing Shift while trimming/extending a feature now keeps the reference feature.
Also fix the rubber band display when the layer crs != canvas crs.