The restore actions use the recorded folder without checking that it still
exists, so an upgrade creates it again rather than using the default folder.
main split files.rs, import.rs and media.rs into modules and moved meta's xmp.rs tests to xmp/tests.rs
(#3103): probe_bytes' orientation and region turn move to files/probe.rs, the import's orientation to
import/commit.rs, ProbeInfo::orientation to media/source.rs, and the regions_drawn_on test to
xmp/tests.rs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
`rating:>=3`, `iso:<=400`, `f:>=2.8` read the `=` as part of the number, the
parse failed, and the token silently matched no photo. Parse the two-character
operators first and compare inclusively; `>`, `<`, `=` and bare numbers are
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SqKgSkHi5MfTQFrZvDKBjm
Conflict in docs/parity-checklist.md: main rewrote the header's change line (KEYC-METADATA
and LRC-LIB-KEYWORDS keyword sets first). Main's line is kept, with this branch's
LR-LIB-PEOPLE entry added at its front; the LR-LIB-PEOPLE row and the revision history row
merged cleanly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018U5oDm8hZ4tVD3Kqvg7iat
* LR-PREF-SHORTCUTS: the shortcuts panel's Fixed keys ignore keys saved for unknown commands
* KEYC-METADATA: an Add Keywords request the Keywords panel can't take in time expires
* LR-META-INFO: Target Photo saves an Info edit to the photo it shows
Preserve current main, adapt frame/input and IME handling, and keep library
check results stable across layout passes. Include the matching Nix font lock
and reviewed attribution changes.
From CodeRabbit's review of #2857:
- Import: when the file's orientation swaps the axes and the XMP's boxes were
drawn on a stated size, the probe turns the boxes as written by the image
header's stored size, not by a size the metadata states (missing, or
written for the upright photo).
- Read Metadata from File and Synchronize Folder: the file's orientation is
read from its first MiB and, when that part states none, from the rest of
the file. WebP keeps its EXIF chunk after the image data, many TIFF
writers put the first IFD after the strips, and a JPEG's Exif can follow
other long segments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TuX1qw9ieyuJ1ZFrrUxzc
Lightroom Classic's keyboard shortcut page lists Command+K (Ctrl+K on
Windows) for Add keywords. LightCraft had no key for it.
Add Keywords (panel.addKeywords, Cmd+K) shows the Keywords panel,
opens its Keywording section when it is folded shut, and puts the
cursor in the Add keyword box, so the next keywords typed go to the
selected photos. Pressed again, it leaves the panel open. With no photo
selected the panel shows its note, and selecting photos later does not
move the cursor into the box.
The command label has a row in every catalog. The KEYC-METADATA row,
docs/ui-parity.md and docs/library-shortcuts.md list the key. The
KEYC-METADATA row also lists the existing Alt+1 to Alt+9 keyword set
keys in place of "no keyword sets".
Some applications give a rotated photo's MWG regions on its stored pixels and
say so only through mwg-rs:AppliedToDimensions (the stored, sideways size),
without Lightroom's mwg-rs:Rotation. Those boxes were taken as upright, so on
a portrait photo they sat where the landscape photo had the faces.
When AppliedToDimensions has the shape of the photo as stored rather than
upright, the boxes are now turned with the file's own Exif orientation (mirror
included): for embedded XMP at import (with the header's size when the
metadata states none), and for sidecars and a raw's embedded XMP at import, on
Read Metadata from File and in Synchronize Folder. Boxes drawn on the upright
size, square photos and Lightroom's turned boxes are taken as written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TuX1qw9ieyuJ1ZFrrUxzc
Lightroom Classic's keyboard shortcut page lists Option+0 / Option+Shift+0
(Alt+0 / Alt+Shift+0 on Windows) for cycling forward and backward through
the keyword sets; LightCraft had no key or command for it. Next Keyword
Set (keyword.nextSet, Alt+0) and Previous Keyword Set
(keyword.previousSet, Alt+Shift+0) make the set after or before the
current one current, in the Keyword Set menu's order: Recent Keywords,
then the saved sets. The keys wrap around at either end, and Alt+1 to
Alt+9 then apply the new set's keywords.
The two command labels have rows in every catalog. The KEYC-METADATA and
LRC-LIB-KEYWORDS rows, docs/ui-parity.md and docs/library-shortcuts.md
list the keys.
craft-ui and craft-docpath are pinned to craft-libs 16fb3d46e1eaa0d455465e4e66a3ac7b17b55bd3.
The saved workspace is craft_ui::docking::Workspace<Panel>; settings written
before it had a version load as version 1. ui.dock params parse as the shared
DockCommand and apply through Workspace::apply_all. LightCraft keeps its
panels, permissions, default layout, photo-view checks, the fallback beside
the photo view for a panel with no recorded place, and its settings file.
The photo view takes side splits (accepts_splits on PROTECTED), so panels
still open and move beside it.
Tests: a version 1 workspace file loads and reopens its hidden panel; a drag
of a group by its bar moves both of its panels.
When a saved keymap gave a key to one command and a later build declared
the same key as another command's default, one press ran both commands,
and menus and Help > Keyboard Shortcuts listed the key on both.
binding() now drops a declared shortcut while the keymap gives its key to
another known command, other than its contextual partner. handle(),
conflicts(), shortcut_of(), the menus and the shortcut editor read it.
In the editor such a row counts as changed, so its restore button takes
the key back.
handle() also let every saved entry stop the fixed keys on its key
(Enter in the grid, secondary keys such as Shift+X, the rating and
label digits, Home, End and Shift+arrows), including entries for
commands the build does not know. It now reads only the entries of
known commands, as binding() does, so a stale entry in ui.json no
longer silences Shift+X, a rating digit or a label digit.