Skip to content

Feature Request: Search for appropriate command #172

@gotlougit

Description

@gotlougit

There are many situations where you know which tool to use and what you want done with it, but you can't exactly recall which command is the one that will do the job. For simpler utilities, tldr <utility-name> will often do the job, but for programs with multiple subcommands (for example, git), this will become very tedious.

I propose having an option to search the tldr pages for keywords. In order to speed it up, the user could specify which utility they want to search in.

It would work as such:

  1. User wants to know how to delete a branch in git
  2. Open up terminal and type tldr git --search="delete branch"
  3. tldr will output something like this:
  git branch

  Main Git command for working with branches.
  More information: https://git-scm.com/docs/git-branch.

  - **Delete** a local **branch** (must not have it checked out to do this):
    git branch -d branch_name

  - **Delete** a remote **branch**:
    git push remote_name --delete remote_branch_name

Essentially, the basic overview of the page it got the information from and the relevant entries (the keywords are highlighed but this is optional).

This way we can add yet another good use case for tldr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions