zoxide/contrib/completions
Martin Zacho ac98f4044c cmd/query: Add `--sort-by` option
Added the option `--sort-by [score|path|last-accessed]` for the `query`
subcommand with default value `score` i.e:

```bash
$ zoxide query --list --score --sort-by last-accessed
   4.0 /home/martin/playground/scala/scala-3-project-template
   3.5 /home/martin/playground/rust
   3.8 /home/martin/playground/python
  12.0 /home/martin/projects/zoxide
  11.8 /home/martin/playground
  16.5 /home/martin/projects/thesis
   6.0 /home/martin/projects/thesis/frontend
...
```

```bash
$ zoxide query --list --score --sort-by path
   0.2 /home/martin/.local/state
   0.2 /home/martin/.local/share/zoxide
   0.2 /home/martin/.local/share
   0.2 /home/martin/.config/protonmail/bridge-v3
   0.2 /home/martin/.config/protonmail
   0.5 /home
   0.5 /etc/nixos/lib/lisp
   0.8 /
...
```

```bash
$ zoxide query --list --score
  16.5 /home/martin/projects/thesis
  16.0 /home/martin/projects/zoxide
   8.0 /home/martin/projects/egcd
   8.0 /persist
   6.0 /home/martin/projects/thesis/frontend
...
```

Fixes #784 as well as #815.
2024-07-15 18:59:02 +02:00
..
README.md Enable --strict checks for mypy 2021-10-29 02:22:25 +05:30
_zoxide cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00
_zoxide.ps1 cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00
zoxide.bash cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00
zoxide.elv cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00
zoxide.fish cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00
zoxide.ts cmd/query: Add `--sort-by` option 2024-07-15 18:59:02 +02:00

README.md

completions

Shell completions for zoxide, generated by clap. Since clap is in beta, these completions should not be treated as stable.