{"id":13479669,"url":"https://github.com/voldikss/fzf-floaterm","last_synced_at":"2025-06-13T18:07:33.097Z","repository":{"id":109179639,"uuid":"294265469","full_name":"voldikss/fzf-floaterm","owner":"voldikss","description":"Fzf support for vim-floaterm","archived":false,"fork":false,"pushed_at":"2023-11-05T11:05:09.000Z","size":8,"stargazers_count":24,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:55:50.339Z","etag":null,"topics":["fzf","fzf-plugin","neovim","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voldikss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-09-10T00:58:24.000Z","updated_at":"2025-01-15T12:45:16.000Z","dependencies_parsed_at":"2023-03-30T12:08:04.093Z","dependency_job_id":null,"html_url":"https://github.com/voldikss/fzf-floaterm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voldikss%2Ffzf-floaterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voldikss%2Ffzf-floaterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voldikss%2Ffzf-floaterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voldikss%2Ffzf-floaterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voldikss","download_url":"https://codeload.github.com/voldikss/fzf-floaterm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799684,"owners_count":20512301,"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":["fzf","fzf-plugin","neovim","vim"],"created_at":"2024-07-31T16:02:21.105Z","updated_at":"2025-03-21T12:33:39.786Z","avatar_url":"https://github.com/voldikss.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# fzf-floaterm\n\nFzf support for [vim-floaterm](https://github.com/voldikss/vim-floaterm)\n\n## Install\n\n```vim\nPlug 'junegunn/fzf', { 'do': { -\u003e fzf#install() } }\nPlug 'voldikss/fzf-floaterm'\nPlug 'voldikss/vim-floaterm'\n```\n\n## Usage\n\n### Get Started\n\n```\n:Floaterms\n```\n\n### Create New Pre-configured Floaterms\n\nUsing `:Floaterms` not just for switching to existing terminals but also to\ncreate new ones (with different config).\n\nDefine the different terminal types by a global variable\n`g:fzf_floaterm_newentries` that we can set in `.vimrc` for a root shell, fish\nshell and a powershell terminal.\n\nThe key represents a unique identifier which must be non numerical (or at\nleast outside the buffer number range). The options will be forwarded to\nfloaterm itself, where cmd defines the command.\n\n```vim\nlet g:fzf_floaterm_newentries = {\n  \\ '+root' : {\n    \\ 'title': 'Root Shell',\n    \\ 'cmd': 'sudo sh' },\n  \\ '+fish' : {\n    \\ 'title': 'Fish Shell',\n    \\ 'cmd': 'fish' },\n  \\ '+pwsh' : {\n    \\ 'title': 'Powershell',\n    \\ 'cmd': 'pwsh' }\n  \\ }\n```\n\n### Get current working directory in vim\n\nThe plugin use indices and terminal working directory as fzf entries.\n\nNeovim has `b:buffer` variable for getting working directory of terminal, but vim must use `Tapi_` to notify the information.\n\nSo you should add `source /path/fzf-floaterm/macros/termcwd.sh` to your `.bashrc` or `.zshrc` file in vim only.\n\n### Floaterm Fzf layout options\n\nDefine fzf layout by `g:floatterm_fzf_layout`, exmaple is bellow.\n\n```vim\n\n    let g:floatterm_fzf_layout = {\n         \\ 'window': {\n            \\ 'width': 0.9,\n            \\ 'height': 0.6,\n            \\ 'border': 'sharp',\n            \\ 'highlight': 'FloatermBorder'\n         \\ } \n     \\}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoldikss%2Ffzf-floaterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoldikss%2Ffzf-floaterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoldikss%2Ffzf-floaterm/lists"}