Closed vozhyk- closed 3 years ago
That's a good idea! I'll see how feasible this is to integrate in the -lib function with a KCL toggle for it.
Sorting by creation should be easy, but highlighting the default by means other than moving it to the top might be harder.
I re-read the request here - fzf
and skim
can't pre-select an item in a list as far as I know, without masking all of the other items in the list (via --query). The only solution I have is to move the default to the top of the list, so that it's the default initial selection. Sorting the list by other criteria should be doable, though.
@vozhyk- if you're interested, https://github.com/zbm-dev/zfsbootmenu/tree/be-sort is generally ready for testing. Set zbm.sort_key=creation
on the ZBM KCL and your BE list and snapshot list should be sorted by creation date. You can press $mod-o
to cycle through name, creation, used . Let me know how it works for you.
Currently, the BEs seem to be sorted by name, except the default one, which is put at the beginning of the list.
Having the BEs sorted by
creation
and the default one highlighted in its place seems more natural to me - it helps make sense of a long list of BEs and see whether the default one is the newest.Can an option to sort the list of BEs like that be added?