Skip to content

v1.2.1

Latest

Choose a tag to compare

@AceMythos AceMythos released this 26 Sep 17:18

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_detected
  • detect_kind_still_behaves_for_other_kinds — guards against the new branch changing existing classifications