Thanks to visit codestin.com
Credit goes to github.com

Skip to content

edit --interactive --sort does not retain sorting order when filtering #559

@WhyNotHugo

Description

@WhyNotHugo

Check if applicable

  • I have searched the existing issues (required)
  • I'm willing to help fix the problem and contribute a pull request

Describe the bug

Using zk edit --interactive journal --sort path- sorts items by path.

When I type into fzf to filter them, the items are re-sorted based on how close of a match they are with my search terms. I want --sort to also be respected after filtering.

How to reproduce?

  1. Have a few items with meaningful path names (e.g.: date-based).
  2. zk edit --interactive --sort path-
  3. Search by some term present in a few of the notes. Ideally one with full matches on some, but partial matches on others.

zk configuration

I don't think that anything in my config is relevant, but it's available here: https://git.sr.ht/~whynothugo/dotfiles/tree/34dbad5cd04c3ef3f0ce456fb53826fcb93836bd/item/home/.config/zk/config.toml

Environment

zk 0.15.1-4-gf477aac
system: Linux 6.15.6-0-stable x86_64 Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleNo recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions