{
  "id": "hstr",
  "name": "HSTR",
  "homepage": "https://github.com/dvorka/hstr",
  "description": "Bash and Zsh shell history TUI suggest box - easily view, navigate, search and manage your command history.",
  "icon": "https://raw.githubusercontent.com/dvorka/hstr/master/web/hstr-icon.svg",
  "executables": [
    "hstr",
    "hh"
  ],
  "dotfiles": {
    "paths": [
      "~/.hstr_favorites",
      "~/.hstr_blacklist"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Search history",
    "description": "Browse or print shell command history. Interactive search is the default; shell setup output is also available.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://github.com/dvorka/hstr/blob/master/man/hstr.1",
        "evidence": "\fB-n --non-interactive\fR\nPrint filtered history on standard output and exit\n\fB-k --kill-last-command\fR\nDelete the last command from history and exit\n\fB-i --insert-in-terminal=[command]\fR\nInsert custom command in terminal prompt and exit\n\fB-f --favorites\fR\nShow favorites view immediately\n\fB-s --show-configuration\fR\nShow configuration to be added to the config file of the shell (~/.bashrc or ~/.zshrc)\n\fB-B --show-bash-configuration\fR\nShow Bash configuration to be added to ~/.bashrc\n\fB-Z --show-zsh-configuration\fR\nShow Zsh configuration to be added to ~/.zshrc\n\fB-b --show-blacklist\fR\nShow blacklist of commands to be filtered out before history processing\n"
      }
    ],
    "field": [
      {
        "id": "pattern",
        "label": "Initial filter",
        "type": "string",
        "position": 0,
        "sources": [
          "man"
        ]
      },
      {
        "id": "non_interactive",
        "label": "Print to stdout",
        "description": "Print filtered history on standard output and exit.",
        "type": "boolean",
        "option": [
          "--non-interactive",
          "-n"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "favorites",
        "label": "Favorites view",
        "type": "boolean",
        "option": [
          "--favorites",
          "-f"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "kill_last",
        "label": "Delete last command from history",
        "type": "boolean",
        "option": [
          "--kill-last-command",
          "-k"
        ],
        "effect": "delete",
        "sources": [
          "man"
        ]
      },
      {
        "id": "show_config",
        "label": "Show shell configuration",
        "type": "boolean",
        "option": [
          "--show-configuration",
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "show_bash",
        "label": "Show Bash configuration",
        "type": "boolean",
        "option": [
          "--show-bash-configuration",
          "-B"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "show_zsh",
        "label": "Show Zsh configuration",
        "type": "boolean",
        "option": [
          "--show-zsh-configuration",
          "-Z"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "show_blacklist",
        "label": "Show blacklist",
        "type": "boolean",
        "option": [
          "--show-blacklist",
          "-b"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "search",
        "label": "Print matching history",
        "fields": [
          "pattern",
          "non_interactive"
        ],
        "required": [
          "pattern"
        ],
        "set": {
          "non_interactive": [
            true
          ]
        }
      },
      {
        "id": "zsh_setup",
        "label": "Zsh setup snippet",
        "fields": [
          "show_zsh"
        ],
        "required": [
          "show_zsh"
        ],
        "set": {
          "show_zsh": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "pattern",
          "non_interactive",
          "favorites"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "kill_last",
          "show_config",
          "show_bash",
          "show_zsh",
          "show_blacklist"
        ]
      }
    ]
  }
}
