Skip to content

Note menu: filing into folders stays usable with many folders #1578

Done

Description

@vmillet-dev

Context — The options menu of a note grows with the number of folders, becomes unreadable and names go out of it. The menu has both Ranger dans and Déplacer vers, which are not clearly different. Reported on 1.0.3.

Change — Two entries with one verb (Move to folder, Move to space), or one Move to entry, open a picker of fixed height: a filter, the folder tree, long names cut with an ellipsis, recent folders on top; the menu itself no longer grows. Note: Ranger dans files into a folder of the same space, Déplacer vers moves to another space; they are not duplicates, the vocabulary is the problem. Proposal and fork: see the technical analysis comment.

To do

  • Decide on the vocabulary and the entries.
  • Picker with filter and tree; reuse it for the bulk action.
  • Keyboard use of the picker.

Tests — Unit test on the picker with 300 folders; e2e on moving a note.

Activity

  1. added
    enhancement
    on Nov 18, 2026
  2. vmillet-dev commented on Nov 18, 2026

    @vmillet-dev
    OwnerAuthor

    Technical analysis — and a correction to the ticket

    The two entries are not duplicates; I had that wrong. In notes/canvas/card/actions.rs the note's menu has two sections:

    • Ranger dans (FILE_INTO, filing, line 288): the folders of the note's own space, as a flat list of paths (Runbooks › SQL), plus "no folder". One entry per folder with no limit: that is why the menu grows and long paths overflow.
    • Déplacer vers (MOVE_TO_SPACE, moving, line 360): the other spaces; moving there takes the note out of its folder.

    So the confusion is vocabulary ("ranger" and "déplacer" both mean "put elsewhere") and two granularity levels sharing one flat menu.

    Proposal (to validate).

    • Same verb, the destination kind in the noun: Move to folder… and Move to space….
    • Each opens one picker (ChoiceMenu with filter and a 240 px cap, menu.rs:447), not a list inside the menu, so the note's menu keeps its height whatever the number of folders. The folder picker shows the tree indented (not a › b › c paths), the current folder ticked, "No folder" at the top, names cut with an ellipsis and a tooltip.
    • The same pickers serve the bulk bar (header/selection.rs:228 selection-move, :254 selection-file), which already uses ChoiceMenu.

    Fork for the owner. One entry "Move to…" opening one picker with the spaces as groups and their folders under them (one gesture for both), or the two entries above. Recommended: the single picker, since spaces are few and it removes the question "which one do I want?".

    Files. notes/canvas/card/actions.rs (filing, moving), widgets/menu.rs (a tree picker), header/selection.rs, crates/i18n/translations/{fr,en}.json (fileInto, moveToSpace). Depends on #1576.

  3. added a commit that references this issue on Nov 24, 2026
  4. vmillet-dev commented on Nov 24, 2026

    @vmillet-dev
    OwnerAuthor

    Fixed by #1631, merged into dev/1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions