zk
zk copied to clipboard
edit --interactive --sort does not retain sorting order when filtering
Check if applicable
- [x] I have searched the existing issues (required)
- [x] 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?
- Have a few items with meaningful path names (e.g.: date-based).
zk edit --interactive --sort path-- 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
Related issues
https://github.com/zk-org/zk/issues/559