{"id":42810482,"url":"https://github.com/gh-liu/nvim-winterm","last_synced_at":"2026-01-31T04:00:36.696Z","repository":{"id":332748747,"uuid":"1134847550","full_name":"gh-liu/nvim-winterm","owner":"gh-liu","description":"Multi-terminal window manager.","archived":false,"fork":false,"pushed_at":"2026-01-22T05:46:54.000Z","size":44,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T16:52:21.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/gh-liu.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-15T09:38:08.000Z","updated_at":"2026-01-22T05:46:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gh-liu/nvim-winterm","commit_stats":null,"previous_names":["gh-liu/nvim-winterm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gh-liu/nvim-winterm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-liu%2Fnvim-winterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-liu%2Fnvim-winterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-liu%2Fnvim-winterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-liu%2Fnvim-winterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-liu","download_url":"https://codeload.github.com/gh-liu/nvim-winterm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-liu%2Fnvim-winterm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-30T05:00:32.985Z","updated_at":"2026-01-31T04:00:36.686Z","avatar_url":"https://github.com/gh-liu.png","language":"Lua","readme":"# nvim-winterm\n\nMulti-terminal window manager.\n\n\u003cimg width=\"2032\" height=\"1162\" alt=\"Screenshot 2026-01-21 at 11 26 33\" src=\"https://github.com/user-attachments/assets/841a1a0a-56da-4c1f-9521-9b470f288459\" /\u003e\n\n## Installation\n\n### lazy.nvim\n\n```lua\n{\n    \"gh-liu/nvim-winterm\",\n    opts = {\n        win = {\n            height = 0.3,\n        },\n    },\n},\n```\n\n## Configuration\n\n### Options\n\n- `win.height`: Window height as a ratio of screen lines (default `0.3`)\n- `autofocus`: Auto focus terminal window after running command (default `true`)\n- `autoinsert`: Auto enter insert mode when focusing terminal (default `false`)\n\nExample:\n\n```lua\n{\n    \"gh-liu/nvim-winterm\",\n    opts = {\n        win = {\n            height = 0.3,\n        },\n        autofocus = true,\n        autoinsert = false,\n    },\n}\n```\n\n## Highlight\n\nWinbar uses its own highlight groups, linked to TabLine by default:\n\n- `WintermWinbar` -\u003e `TabLine`\n- `WintermWinbarSel` -\u003e `TabLineSel`\n\n## Commands\n\n- `:Winterm`: Toggle the window (opens a shell the first time)\n- `:Winterm {cmd}`: Create a terminal running `{cmd}`\n- `:Winterm -dir={path} {cmd}`: Create a terminal in `{path}` (default uses `getcwd()`)\n- `:Winterm [N]` or `:[N]Winterm`: Focus terminal by index\n- `:Winterm! [N]` or `:[N]Winterm!`: Kill terminal (force with `!`)\n\nFor relative navigation, `+N/-N` works with focus/kill arguments (e.g. `:Winterm -1` or `:Winterm! +1`). For absolute index, pass it as an argument or a count (e.g. `:Winterm 3` or `:3Winterm`).\n\n`-dir` supports these forms:\n\n- `-dir=path`\n- `-dir=\"path with spaces\"`\n- `-dir='path with spaces'`\n\n## Lua API\n\n`run()` returns a stable term object (identified by `bufnr`). Use `list()` to get all terms.\n\n```lua\nlocal winterm = require(\"winterm\")\n\nlocal term = winterm.run(\"npm run dev\", { focus = false })\nif term then\n\tterm:focus()\nend\n\nvim.ui.select(winterm.list(), {\n\tprompt = \"Winterm terminals\",\n\tformat_item = function(item)\n\t\treturn string.format(\"%s  (%s)\", item.cmd, item.cwd or \"\")\n\tend,\n}, function(choice)\n\tif choice then\n\t\tchoice:focus()\n\tend\nend)\n```\n","funding_links":[],"categories":["Terminal Integration"],"sub_categories":["CSV Files"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-liu%2Fnvim-winterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-liu%2Fnvim-winterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-liu%2Fnvim-winterm/lists"}