{"id":18229709,"url":"https://github.com/vindolin/selecta","last_synced_at":"2025-07-22T10:06:34.555Z","repository":{"id":57465326,"uuid":"49050498","full_name":"vindolin/selecta","owner":"vindolin","description":"Interactively select an entry from your bash history.","archived":false,"fork":false,"pushed_at":"2024-02-15T20:31:59.000Z","size":14994,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-24T11:58:48.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vindolin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-05T07:46:58.000Z","updated_at":"2024-02-26T15:23:24.000Z","dependencies_parsed_at":"2023-12-02T10:28:09.453Z","dependency_job_id":"5a560b3b-e5f0-4e31-9061-29148c8851af","html_url":"https://github.com/vindolin/selecta","commit_stats":{"total_commits":73,"total_committers":1,"mean_commits":73.0,"dds":0.0,"last_synced_commit":"7baf904d89c757f0fc0a991594f21b3a214e8b16"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vindolin/selecta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fselecta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fselecta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fselecta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fselecta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vindolin","download_url":"https://codeload.github.com/vindolin/selecta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fselecta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266473036,"owners_count":23934475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-04T10:03:08.715Z","updated_at":"2025-07-22T10:06:34.496Z","avatar_url":"https://github.com/vindolin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"selecta - Interactively search and select entries from your bash/zsh history.\n-----------------------------------------------------------------------------\n\n[![Python package](https://github.com/vindolin/selecta/actions/workflows/python-package.yml/badge.svg?branch=master)](https://github.com/vindolin/selecta/actions/workflows/python-package.yml)\n\nThis is a Python3 clone of François Fleuret's excellent [selector](https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=summary) tool.\n\n[![Screencast](https://raw.githubusercontent.com/vindolin/selecta/master/screencast.gif)](https://raw.githubusercontent.com/vindolin/selecta/master/screencast.gif)\n\n\nUsage\n=====\nJust type some characters and see which entries match your words.\n\nYou can search for whole sentences by prefixing your search with a double quote.\n\nUse \u003ckbd\u003eup\u003c/kbd\u003e and \u003ckbd\u003edown\u003c/kbd\u003e arrows to navigate the list.\n\n\u003ckbd\u003eEscape\u003c/kbd\u003e/\u003ckbd\u003eBackspace\u003c/kbd\u003e on the result list returns to the search input.\n\n\u003ckbd\u003eEscape\u003c/kbd\u003e on the search input closes selecta.\n\nPress \u003ckbd\u003eEnter\u003c/kbd\u003e to copy the selected entry to the console.\n\n\u003ckbd\u003eCTRL+a\u003c/kbd\u003e toggles case sensitivity\n\n\u003ckbd\u003eCTRL+r\u003c/kbd\u003e toggles regex search\n\nInstallation\n============\n\n```console\npip install selecta\n```\nInstall the keyboard shortcut ALT+{key}:\n\n```console\nselecta_add_keybinding {the alt key you want to use}\n```\n\nThis will append one of the following lines to your ~/.bashrc/zshrc:\n\n```console\nbind -x '\"\\C-[{key}\":\"\\selecta -b -y \u003c(history)\"'\nbindkey -s \"^[{key}\" \"selecta -z -y \u003c(history)^M\"\n```\n\nUpgrade from older version to 0.2.x\n-----------------------------------\nDelete your old keybinding from .bashrc/.zshrc and register the new version with:\n```console\nselecta_add_keybinding\n```\n\n\n--help output\n-------------\n\n```\n    usage: selecta [-h] [-i] [-b] [-z] [-e] [-a] [-d] [-y] [--bash] [--zsh]\n                   [infile]\n\n    positional arguments:\n      infile                the file which lines you want to select eg. \u003c(history)\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -i, --reverse-order   reverse the order of the lines\n      -b, --remove-bash-prefix\n                            remove the numeric prefix from bash history\n      -z, --remove-zsh-prefix\n                            remove the time prefix from zsh history\n      -e, --regexp          start in regexp mode\n      -a, --case-sensitive  start in case-sensitive mode\n      -d, --remove-duplicates\n                            remove duplicated lines\n      -y, --show-matches    highlight the part of each line which matches the\n                            substrings or regexp\n      --bash                standard for bash history search, same as -b -i -d\n      --zsh                 standard for zsh history search, same as -b -i -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2Fselecta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvindolin%2Fselecta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2Fselecta/lists"}