Fixed
File copies are now labelled correctly in the history popup.
EntryKind::File was declared and had a display label, but no code path ever constructed it. A file copied from COSMIC Files arrives as a bare path in text/plain, which detect_kind() classified as Text — so those entries showed up mislabelled.
detect_kind() now recognises file:// URIs and absolute or ~-relative paths.
Impact
Cosmetic only. Pasting behaviour is unchanged. Replaying the previous logic over existing history shows exactly two entries change label, both genuine file-copy paths.
Tests
13 unit tests, all passing. Two new:
file_paths_are_detecteddetect_kind_still_behaves_for_other_kinds— guards against the new branch changing existing classifications