Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: add --sort-by option to "list" command #195

Open
craftyguy opened this issue Jul 22, 2024 · 1 comment
Open

request: add --sort-by option to "list" command #195

craftyguy opened this issue Jul 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@craftyguy
Copy link

This is a request to add support for sorting the output from rbw list, based on some things like:

  • popularity / usage count
  • the date added/modified

The option could be used like: rbw list --sort-by=usage and rbw list -s date. I don't think there needs to be an additional option/flag to set the sort direction (asc vs desc), it's easy to reverse the output from rbw using some other cli tool.

For some context on why I think sorting by usage count is useful: I use rbw with fzf, and it would be great to have the most common/used entries at the top so I can save keystrokes (I use rbw like this dozens of times per day :D)

@doy doy added the enhancement New feature or request label Jul 28, 2024
@therealchfkch
Copy link

I would be glad to use this feature aswell, but from a different angle: I need the data, since i include rbw as a library for my GUI project.
If i recall correctly, if i wanted to start a PR, i would extend the SyncRes for each respective element here

rbw/src/api.rs

Line 369 in 80a5651

struct SyncRes {
?
Maybe we can walk it up from there to the CLI output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants