{"id":19413099,"url":"https://github.com/joknarf/redo","last_synced_at":"2025-10-03T14:54:19.857Z","repository":{"id":214663632,"uuid":"737056827","full_name":"joknarf/redo","owner":"joknarf","description":"bash/zsh interactive history menu","archived":false,"fork":false,"pushed_at":"2024-09-08T10:21:00.000Z","size":69,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-09T10:07:10.717Z","etag":null,"topics":["bash","bindkey","command","command-line","command-line-tool","completion","history","interactive","menu","plugin","redo","search","shell","suggestions","widget","zsh"],"latest_commit_sha":null,"homepage":"","language":null,"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/joknarf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-29T17:17:36.000Z","updated_at":"2024-09-08T10:29:25.000Z","dependencies_parsed_at":"2024-01-23T22:25:30.279Z","dependency_job_id":"1f23e5d4-717b-4625-b183-a64f4745797e","html_url":"https://github.com/joknarf/redo","commit_stats":{"total_commits":93,"total_committers":2,"mean_commits":46.5,"dds":"0.010752688172043001","last_synced_commit":"f4897902f2a22a22ebf42d501ebbb72fd3749eda"},"previous_names":["joknarf/redo"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fredo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fredo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fredo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fredo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joknarf","download_url":"https://codeload.github.com/joknarf/redo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223952568,"owners_count":17230915,"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","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":["bash","bindkey","command","command-line","command-line-tool","completion","history","interactive","menu","plugin","redo","search","shell","suggestions","widget","zsh"],"created_at":"2024-11-10T12:30:46.020Z","updated_at":"2025-10-03T14:54:19.511Z","avatar_url":"https://github.com/joknarf.png","language":null,"funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"[![Joknarf Tools](https://img.shields.io/badge/Joknarf%20Tools-Visit-darkgreen?logo=github)](https://joknarf.github.io/joknarf-tools)\n[![bash](https://img.shields.io/badge/shell-bash%20zsh%20-blue.svg)]()\n\n# redo\nbash/zsh interactive history menu / autocompletion\nreplacement for bash/zsh \u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eR\u003c/kbd\u003e and \u003ckbd\u003eEsc\u003c/kbd\u003e\u003ckbd\u003e/\u003c/kbd\u003e to search in history and re-execute/re-edit commands.\n\n## usage\n\n```shell\n$ git clone https://github.com/joknarf/redo\n$ source redo/redo\n```\nor direct source from github repository:\n```shell\n$ source \u003c(curl -Ls https://raw.githubusercontent.com/joknarf/redo/main/redo)\n```\n\nThen on command line:  \n\n* \u003ckbd\u003eShift\u003c/kbd\u003e\u003ckbd\u003eTab\u003c/kbd\u003e or \u003ckbd\u003eEsc\u003c/kbd\u003e\u003ckbd\u003e/\u003c/kbd\u003e or \u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eR\u003c/kbd\u003e to access history menu\n* you can put pattern on command line + \u003ckbd\u003eShift\u003c/kbd\u003e\u003ckbd\u003eTab\u003c/kbd\u003e or \u003ckbd\u003eEsc\u003c/kbd\u003e\u003ckbd\u003e/\u003c/kbd\u003e or \u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eR\u003c/kbd\u003e to filter and access history menu\n* in menu enter pattern to filter/re-filter history\n* select command line with arrows or enter number and press enter\n* you can then edit the command line before execution\n\n![redo](https://github.com/joknarf/redo/assets/10117818/125a2e72-0a89-4c67-bac6-2276813cff68)\n\n## keys in menu\n\n|key                             | action                                                |\n|--------------------------------|-------------------------------------------------------|\n|\u003ckbd\u003e▼\u003c/kbd\u003e                    | select next item                                      | \n|\u003ckbd\u003e▲\u003c/kbd\u003e                    | select prev item                                      |\n|\u003ckbd\u003eEnd\u003c/kbd\u003e/\u003ckbd\u003e▶\u003c/kbd\u003e     | select last item                                      |\n|\u003ckbd\u003eHome\u003c/kbd\u003e/\u003ckbd\u003e◀\u003c/kbd\u003e    | select first item                                     | \n|\u003ckbd\u003ePgUp\u003c/kbd\u003e/\u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eF\u003c/kbd\u003e| next page                                   |\n|\u003ckbd\u003ePgDn\u003c/kbd\u003e/\u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eB\u003c/kbd\u003e| previous page                               |\n|\u003ckbd\u003eEsc\u003c/kbd\u003e                  | exit                                                  |\n|\u003ckbd\u003eCtrl\u003c/kbd\u003e\u003ckbd\u003eA\u003c/kbd\u003e     | use all screen to display menu                        |\n|\u003ckbd\u003eEnter\u003c/kbd\u003e/\u003ckbd\u003eTab\u003c/kbd\u003e | put selected on command line                          |\n|\u003ckbd\u003eTab\u003c/kbd\u003e                  | apply filter/new filter                               |\n|\u003ckbd\u003eDel\u003c/kbd\u003e/\u003ckbd\u003eF8\u003c/kbd\u003e    | delete item from history file                         |\n\n* filter pattern can be applied entering text\n* selection can be done entering item number\n\n## delete history commands\n\nTo delete command from current shell history and `$HISTFILE` use `redodel` command then chose command and press \u003ckbd\u003eDel\u003c/kbd\u003e or \u003ckbd\u003eF8\u003c/kbd\u003e.  \n\nUsing \u003ckbd\u003eDel\u003c/kbd\u003e/\u003ckbd\u003eF8\u003c/kbd\u003e when using redo bind key (\u003ckbd\u003eEsc\u003c/kbd\u003e\u003ckbd\u003e/\u003c/kbd\u003e or \u003ckbd\u003eCtl\u003c/kbd\u003e\u003ckbd\u003eR\u003c/kbd\u003e) will not remove command from current shell history (line editing limitation), but the `$HISTFILE` will be purged from the command.  \n\nWhen deleting history in `$HISTFILE` using redo bind key, set the following options to ensure the history is not written later in `$HISTFILE` by shell.\n\n* zsh options to set :\n  ```zsh\n  setopt appendhistory\n  setopt incappendhistory\n  ```\n\n* bash options to set :\n  ```\n  shopt -s histappend cmdlist\n  PROMPT_COMMAND='history -a'\n  ```\n\n## limitations\n\n* zsh on ubuntu 22 : in vi mode, to have \u003ckbd\u003eEsc\u003c/kbd\u003e\u003ckbd\u003e/\u003c/kbd\u003e correctly binded, you need to put in `~/.zshenv`:\n  ```\n  skip_global_compinit=1\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoknarf%2Fredo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoknarf%2Fredo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoknarf%2Fredo/lists"}