Save and sort most often used dmenu-like input
Find a file
Leonardo Eugênio 11b2d9671a Add nixos config
2022-08-01 20:08:58 -03:00
src init 2022-02-22 20:33:10 -03:00
.gitignore init 2022-02-22 20:33:10 -03:00
Cargo.lock update 2022-05-22 18:54:29 -03:00
Cargo.toml init 2022-02-22 20:33:10 -03:00
flake.lock Add nixos config 2022-08-01 20:08:58 -03:00
flake.nix Add nixos config 2022-08-01 20:08:58 -03:00
README.md init 2022-02-22 20:33:10 -03:00
rust-toolchain.toml init 2022-02-22 20:33:10 -03:00

dhist

Save and sort most often used dmenu-like input

USAGE:
    dhist [OPTIONS] <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information

SUBCOMMANDS:
    help         Print this message or the help of the given subcommand(s)
    increment    Increase usage of input by 1
    query        Print history
    sort         Sort input by history frequency
    wrap         Wrap a command to sort before and increment after

Examples

# sort input of dmenu based on usage
printf "%s\n" hello world | dhist wrap -- dmenu

# same as above, but more verbose
# dhist increment also prints out it's input, so you can still use it for another program
printf "%s\n" hello world | dhist sort | dmenu | dhist increment