No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

Smart Runner (TODO find a better name)

A convenient way to search through a bunch of command line tools and their gazillion of options.

How to use

The runner will print the selected command on stdout (the UI being printed on stderr for the following to work).

With fish

Bind the command to a key (Control+s) and get the selected command in the shell. Add the following to your .config/fish/config.fish (adjusting <PATH_TO_SMART_RUNNER>):

function smart-runner -d "Find a command using tags"
  <PATH_TO_SMART_RUNNER>/smart-runner | read -l cmd
  commandline $cmd
end

function fish_user_key_bindings
    bind \cs smart-runner
end

TODO

  • Do not clear the terminal -> do something like fzf
  • Nix package with fish config