Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/engine/src/cmd/develop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,13 +1516,15 @@ pub fn specs() -> Vec<CommandSpec> {
"Paste Settings from Previous",
["Photo", "Develop Settings"],
Some("Cmd+Alt+V"),
"{ids?, groups?: [settingsGroup], settings?: [settingItem] (default: the copy choice)}: from the photo that was active before this one",
"{ids?, groups?: [settingsGroup], settings?: [settingItem] (default: every setting, whatever Copy Settings has ticked)}: from the photo that was active before this one",
has_active,
|s, p| {
let c = "develop.pastePrevious";
let prev =
s.previous_active.filter(|id| s.catalog.photo(*id).is_some_and(|ph| !ph.deleted)).ok_or_else(|| bad(c, "no previous photo"))?;
let pick = pick_param(p, c)?.unwrap_or_else(|| s.dialogs.copy.clone());
// Paste from Previous carries every setting; only Copy / Paste and
// Sync follow the ticked groups.
let pick = pick_param(p, c)?.unwrap_or_else(|| SettingsPick::of_groups(SettingsGroup::ALL.to_vec()));
let src = s.develop_of(prev).unwrap_or_default();
let mut partial = pick.extract(&src);
lcc_develop::presets::to_recipes(&mut partial);
Expand Down
29 changes: 29 additions & 0 deletions crates/engine/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,35 @@ fn paste_from_previous_and_copy_paste_and_sync_metadata() {
}
}

/// Paste from Previous carries every setting (Calibration, Smooth Skin…) whatever
/// Copy Settings has ticked; Copy / Paste keeps to the ticked groups.
#[test]
fn paste_from_previous_takes_every_group_and_copy_paste_the_ticked_ones() {
let mut s = demo();
let ids: Vec<_> = s.visible().iter().copied().take(3).collect();
s.execute("library.select", &json!({"ids": [ids[0].0]})).unwrap();
s.execute(
"develop.set",
&json!({"values": {"light.exposure": 0.6, "calibration.redHue": 30.0, "calibration.blueSat": -22.0, "skin.amount": 50.0, "skin.evenTone": 20.0}}),
)
.unwrap();
// the Copy choice leaves Calibration and Smooth Skin out (as the user's saved one did)
s.execute("develop.copy", &json!({"groups": ["light"]})).unwrap();
s.execute("library.select", &json!({"ids": [ids[1].0]})).unwrap();
s.execute("develop.pastePrevious", &json!({})).unwrap();
let d = active_dev(&s);
assert_eq!(d.light.exposure, 0.6);
assert_eq!((d.calibration.red_hue, d.calibration.blue_sat), (30.0, -22.0), "Calibration comes along");
assert_eq!((d.skin.amount, d.skin.even_tone), (50.0, 20.0), "Smooth Skin comes along");
// Copy / Paste: only the ticked Light group
s.execute("library.select", &json!({"ids": [ids[2].0]})).unwrap();
s.execute("develop.paste", &json!({})).unwrap();
let d = active_dev(&s);
assert_eq!(d.light.exposure, 0.6);
assert_eq!(d.calibration.red_hue, 0.0, "Copy / Paste keeps to the ticked groups");
assert_eq!(d.skin.amount, 0.0);
}

#[test]
fn stacks_move_and_split() {
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Fixes

- **Paste from Previous carries every setting:** Paste Settings from Previous used the groups ticked in Copy Settings, so a saved choice without Calibration or Retouch left the pasted photo looking different from the one before. It now copies every setting; Copy / Paste and Sync keep to the ticked groups.
2 changes: 1 addition & 1 deletion docs/manual-site/src/content/docs/develop/sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Aside } from '@astrojs/starlight/components';
- **Copy Edit Settings** / **Paste** (`⇧⌘V`): choose which groups travel (light, colour, detail, effects, geometry, crop, masks, spots, ...). Spots and red eye stay per photo when syncing.
- **Paste** applies the groups ticked when copying. Crop, Remove, Masking and Red Eye are unticked by default, so a plain paste leaves them alone. **Paste Selected Settings…** offers every group of the copied photo, also one the copy left out: tick Crop or Remove there to paste it.
- A crop pasted, pasted from Previous, synced or carried by Auto Sync onto a photo of another shape keeps its shape, angle, tightness and place instead of being stretched; it is turned to the photo's own orientation, and an **Original** lock takes the photo's own shape. On a photo of the same shape the crop goes on as it is.
- **Previous** (bottom right): paste the settings of the photo you edited before onto this one. With several photos selected the button is **Sync…**.
- **Previous** (bottom right): paste every setting of the photo you edited before onto this one (Photo ▸ Develop Settings ▸ Paste Settings from Previous, `Ctrl+Alt+V`). It takes all of them, Calibration and Retouch included, whatever Copy Settings has ticked; Copy / Paste and Sync use the ticked groups. With several photos selected the button is **Sync…**.
- **Sync Settings** copies the settings you changed since the last step to the selection, as one undo step.
- **Auto Sync** (`⌥⇧⌘A`, the switch at the bottom): every slider drag edits all selected photos live.
- **Match Total Exposures** (`⌥⇧⌘M`): sets Exposure so each selected photo ends equal, from shutter, ISO and aperture.
Expand Down
2 changes: 1 addition & 1 deletion docs/parity-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ under the UI command that wraps it (a no-op error); the UI command now wins.
| LR-SYNC-PASTE | Paste to selection | P0 | ✅ | `cmd:develop.paste`, `cmd:dialog.pasteSettings` | Paste applies the groups ticked at copy time; Paste Selected Settings pastes any group of the copied photo, also one the copy left out (crop, Remove, masks); a pasted, synced or Auto-Synced crop is refitted to a photo of another shape (`sync_same::synced_crop`; upstream #3148) |
| LR-SYNC-SYNCBTN | Sync active → selected | P1 | ✅ | `cmd:develop.sync`, `cmd:dialog.syncSettings` | Was only a menu command without a choice of settings (should have been 🟡); now Synchronize Settings (group checkboxes, Check All / Check None, Synchronize / Cancel) from Photo ▸ Develop Settings ▸ Sync Settings… (⇧⌘S), the Develop panel's Sync… button and Library's Sync Settings button (2026-10-13); single Basic Tone controls (Exposure … Blacks) via `controls` (2026-10-14) |
| LRC-LIB-SYNCMETA | Sync Metadata (active photo → selection) | P1 | ✅ | `cmd:photo.syncMetadata` | Metadata ▸ Sync Metadata and Library's Sync Metadata button: the active photo's title, caption, copyright, creator, location and keywords to the other selected photos, one undo step; no field-picking dialog yet (`fields` param only) |
| LR-SYNC-PREVIOUS | Paste from previous / auto sync [Classic] | P2 | ✅ | `cmd:develop.pastePrevious`, `cmd:develop.autoSync` | ⌥⌘V pastes the previously active photo's settings (copy groups); Auto Sync (⌥⇧⌘A) |
| LR-SYNC-PREVIOUS | Paste from previous / auto sync [Classic] | P2 | ✅ | `cmd:develop.pastePrevious`, `cmd:develop.autoSync` | ⌥⌘V pastes every setting of the previously active photo (all groups, Calibration and Retouch too, whatever Copy Settings has ticked; Copy / Paste and Sync keep to the ticked groups); Auto Sync (⌥⇧⌘A) |

## O. Merge (MERGE)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Paste from Previous carries every setting

- Paste Settings from Previous (`Ctrl+Alt+V` and the Previous button) now copies every setting of the photo you edited before, Calibration and Retouch included. Copy / Paste and Sync keep to the groups you ticked in Copy Settings.