Skip to content

Marginalia annotations disappear with prompt selection on find-file #561

Open
@iyefrat

Description

@iyefrat

Using find-file, moving the selection up to the prompt line will cause marginalia annotations to disappear if the path in the prompt is in a separate directory than one you first run the command in.

To reproduce, open emacs -Q and eval the following:

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
(package-install 'marginalia)
(require 'marginalia)
(marginalia-mode)
(package-install 'selectrum)
(selectrum-mode +1)

Then, run find-file, navigate to a different directory in it, and move the selection up to the prompt line. When you have some partial path in the same directory you started in, moving the selection up to the prompt line doesn't cause the annotations to disappear, but this seems to happen for any other directory you move to. This is definitely an issue on the selectrum side since I can't reproduce this on vertico.

cc: @minad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions