{"id":13506835,"url":"https://github.com/atweiden/fzf-extras","last_synced_at":"2025-04-10T02:24:29.120Z","repository":{"id":29870001,"uuid":"33415167","full_name":"atweiden/fzf-extras","owner":"atweiden","description":"Key bindings from fzf wiki","archived":false,"fork":false,"pushed_at":"2024-01-22T04:37:02.000Z","size":58,"stargazers_count":196,"open_issues_count":1,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T18:52:53.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/atweiden.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":"2015-04-04T18:12:53.000Z","updated_at":"2025-02-21T21:42:39.000Z","dependencies_parsed_at":"2024-06-02T16:33:29.353Z","dependency_job_id":"42708266-1e4d-4ab4-a26e-4f56deb9851c","html_url":"https://github.com/atweiden/fzf-extras","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atweiden%2Ffzf-extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atweiden%2Ffzf-extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atweiden%2Ffzf-extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atweiden%2Ffzf-extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atweiden","download_url":"https://codeload.github.com/atweiden/fzf-extras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143515,"owners_count":21054792,"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":[],"created_at":"2024-08-01T01:00:58.650Z","updated_at":"2025-04-10T02:24:29.080Z","avatar_url":"https://github.com/atweiden.png","language":"Shell","funding_links":[],"categories":["Tools/Scripts/Code:","Shell"],"sub_categories":[],"readme":"# fzf-extras\n\nAdditional key bindings for fzf, primarily Bash.\n\n## Usage\n\n### Bash\n\n**directory**\n\nbash cmdline              | description\n---                       | ---\n`zd`                      | 'fuzzy-finder' + 'cd' = 'zd', the super function of `zdd`, `zda`, `zdr`, `zdf`, `zst`, `zz`\n`zdd`                     | cd into selected directory\n`zda`                     | cd into selected directory, including hidden directories\n`zdr`                     | cd into selected parent directory\n`zdf`                     | cd into directory of selected file\n`zst`                     | cd into directory from stack\n`zz`                      | cd into selectable 'frecency' directory\n\n**file**\n\nbash cmdline              | description\n---                       | ---\n`e [FUZZY PATTERN]`       | Open 'frecency' files with `$EDITOR`\n`fe [FUZZY PATTERN]`      | Open selected file with `$EDITOR`\n`fo`                      | Equivalent to `fe`, but opens file with `$OPENER` (default: `xdg-open`) if you press \u003ckbd\u003eCtrl+O\u003c/kbd\u003e\n`v`                       | Open selected files from `~/.viminfo` with `$EDITOR`\n\n**git**\n\nbash cmdline              | description\n---                       | ---\n`fbr`                     | Checkout Git branch (including remote branches)\n`fco`                     | Checkout Git branch/tag\n`fcoc`                    | Checkout Git commit\n`fcs`                     | Get Git commit SHA hash\n`fshow`                   | Git commit browser\n`fstash`                  | Git stash management (\u003ckbd\u003eEnter\u003c/kbd\u003e to show stash contents, \u003ckbd\u003eCtrl+D\u003c/kbd\u003e to show diff of stash against current HEAD, \u003ckbd\u003eCtrl+B\u003c/kbd\u003e to check stash out as a branch, for easier merging)\n`fzf-gitlog-multi-widget` | Multi-selectable `git show`\n`fzf-gitlog-widget`       | Git log browser\n\n**history**\n\nbash cmdline              | description\n---                       | ---\n`fh`                      | Select line from history, repeat without editing\n`fhe`                     | Select line from history, leave for editing\n`runcmd`                  | Utility function used to run shell command\n`writecmd`                | Utility function used to write shell command\n\n**pid**\n\nbash cmdline              | description\n---                       | ---\n`fkill`                   | Select process to kill (alternatively, type `kill`˽\u003ckbd\u003eTab\u003c/kbd\u003e)\n\n**tags**\n\nbash cmdline              | description\n---                       | ---\n`ftags`                   | Search ctags\n\n**tmux**\n\nbash cmdline              | description\n---                       | ---\n`fs [FUZZY PATTERN]`      | Select tmux session\n`ftpane`                  | Switch pane\n\n### Zsh\n\n**file**\n\nzsh cmdline               | description\n---                       | ---\n\u003ckbd\u003eAlt-i\u003c/kbd\u003e          | Paste selected entry from `locate` output into command line\n\n## Installation\n\n### Install fzf-extras\n\n**Arch Linux**\n\nInstall [aur/fzf-extras](https://aur.archlinux.org/packages/fzf-extras).\n\n**Manual**\n\n```sh\ngit clone https://github.com/atweiden/fzf-extras ~/.fzf-extras\n```\n\n### Configure fzf-extras\n\nTo make use of function `fo`, consider setting the `$OPENER` environment\nvariable. If `$OPENER` is unset, `fo` will attempt to open files with\n`xdg-open` when pressing \u003ckbd\u003eCtrl+O\u003c/kbd\u003e.\n\n**Arch Linux**\n\n```sh\ncat \u003e\u003e ~/.bashrc \u003c\u003c'EOF'\nOPENER=mimeo\nEOF\n```\n\n**macOS**\n\n```sh\ncat \u003e\u003e ~/.bashrc \u003c\u003c'EOF'\nOPENER=open\nEOF\n```\n\n### Source fzf-extras\n\n**Arch Linux**\n\n```sh\n# bash users only\ncat \u003e\u003e ~/.bashrc \u003c\u003c'EOF'\n[[ -e \"/usr/share/fzf/fzf-extras.bash\" ]] \\\n  \u0026\u0026 source /usr/share/fzf/fzf-extras.bash\nEOF\n\n# zsh users only\ncat \u003e\u003e ~/.zshrc \u003c\u003c'EOF'\n[[ -e \"/usr/share/fzf/fzf-extras.zsh\" ]] \\\n  \u0026\u0026 source /usr/share/fzf/fzf-extras.zsh\nEOF\n```\n\n**Manual**\n\n```sh\n# bash users only\ncat \u003e\u003e ~/.bashrc \u003c\u003c'EOF'\n[[ -e \"$HOME/.fzf-extras/fzf-extras.sh\" ]] \\\n  \u0026\u0026 source \"$HOME/.fzf-extras/fzf-extras.sh\"\nEOF\n\n# zsh users only\ncat \u003e\u003e ~/.zshrc \u003c\u003c'EOF'\n[[ -e \"$HOME/.fzf-extras/fzf-extras.zsh\" ]] \\\n  \u0026\u0026 source \"$HOME/.fzf-extras/fzf-extras.zsh\"\nEOF\n```\n\nZsh users should not be sourcing `fzf-extras.sh`.\n\nThe lack of meaningful support for Zsh will be fixed pending suitable\nPRs from Zsh-using contributors. Note it is perfectly acceptable\nto duplicate code from `fzf-extras.sh` into `fzf-extras.zsh`. See:\nhttps://github.com/atweiden/fzf-extras/issues/12.\n\n## Dependencies\n\n**Required**\n\n- [bash](https://www.gnu.org/software/bash/) or [zsh](https://www.zsh.org/)\n- [fzf](https://github.com/junegunn/fzf)\n- [tmux](https://github.com/tmux/tmux)\n\n**Optional**\n\n- [ctags](https://github.com/universal-ctags/ctags)\n- [fasd](https://github.com/clvv/fasd)\n- [git](https://git-scm.com/)\n- [mlocate](https://pagure.io/mlocate)\n- [vim](https://www.vim.org/)\n- [xdg-utils](https://www.freedesktop.org/wiki/Software/xdg-utils/)\n\n## Sources\n\n- [fzf/wiki](https://github.com/junegunn/fzf/wiki)\n- [junegunn/dotfiles](https://github.com/junegunn/dotfiles)\n\n## See Also\n\n- [DanielFGray/fzf-scripts](https://github.com/DanielFGray/fzf-scripts)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatweiden%2Ffzf-extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatweiden%2Ffzf-extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatweiden%2Ffzf-extras/lists"}