{"id":24837236,"url":"https://github.com/letieu/wezterm-move.nvim","last_synced_at":"2025-10-14T11:32:07.770Z","repository":{"id":232927227,"uuid":"785553405","full_name":"letieu/wezterm-move.nvim","owner":"letieu","description":"Directional navigation of Neovim + Wezterm","archived":false,"fork":false,"pushed_at":"2024-10-01T06:59:17.000Z","size":11,"stargazers_count":38,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T05:29:48.276Z","etag":null,"topics":["neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/letieu.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}},"created_at":"2024-04-12T05:49:43.000Z","updated_at":"2025-03-28T15:18:19.000Z","dependencies_parsed_at":"2024-04-16T06:28:55.084Z","dependency_job_id":null,"html_url":"https://github.com/letieu/wezterm-move.nvim","commit_stats":null,"previous_names":["letieu/wezterm-move.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/letieu/wezterm-move.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fwezterm-move.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fwezterm-move.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fwezterm-move.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fwezterm-move.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letieu","download_url":"https://codeload.github.com/letieu/wezterm-move.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fwezterm-move.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019089,"owners_count":26086516,"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-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["neovim-plugin"],"created_at":"2025-01-31T05:53:37.105Z","updated_at":"2025-10-14T11:32:07.452Z","avatar_url":"https://github.com/letieu.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wezterm-move.nvim\n\nNavigate between `neovim` and [wezterm](https://wezterm.com/) panes.\n\nIt's just like [smart-split.nvim](https://github.com/mrjones2014/smart-splits.nvim) but:\n - only for wezterm.\n - more lazy load.\n - more minimal.\n\n## Features\n- **Navigate**: Move from neovim to wezterm panes with ease.\n- **Minimal**: No dependencies, *30* lines of code.\n- **Lazy load**: Fully lazy loaded with *lazy.nvim*.\n\n## Installation\n\n* With **lazy.nvim**\n\n```lua\n{\n    \"letieu/wezterm-move.nvim\",\n    keys = { -- Lazy loading, don't need call setup() function\n      { \"\u003cC-h\u003e\", function() require(\"wezterm-move\").move \"h\" end },\n      { \"\u003cC-j\u003e\", function() require(\"wezterm-move\").move \"j\" end },\n      { \"\u003cC-k\u003e\", function() require(\"wezterm-move\").move \"k\" end },\n      { \"\u003cC-l\u003e\", function() require(\"wezterm-move\").move \"l\" end },\n    },\n}\n```\n\n## Configuration Wezterm\n\n```lua\nlocal wezterm = require(\"wezterm\")\n\nlocal function is_vim(pane)\n  local process_info = pane:get_foreground_process_info()\n  local process_name = process_info and process_info.name\n\n  return process_name == \"nvim\" or process_name == \"vim\"\nend\n\nlocal direction_keys = {\n  Left = \"h\",\n  Down = \"j\",\n  Up = \"k\",\n  Right = \"l\",\n  -- reverse lookup\n  h = \"Left\",\n  j = \"Down\",\n  k = \"Up\",\n  l = \"Right\",\n}\n\nlocal function split_nav(resize_or_move, key)\n  return {\n    key = key,\n    mods = resize_or_move == \"resize\" and \"META\" or \"CTRL\",\n    action = wezterm.action_callback(function(win, pane)\n      if is_vim(pane) then\n        -- pass the keys through to vim/nvim\n        win:perform_action({\n          SendKey = { key = key, mods = resize_or_move == \"resize\" and \"META\" or \"CTRL\" },\n        }, pane)\n      else\n        if resize_or_move == \"resize\" then\n          win:perform_action({ AdjustPaneSize = { direction_keys[key], 3 } }, pane)\n        else\n          win:perform_action({ ActivatePaneDirection = direction_keys[key] }, pane)\n        end\n      end\n    end),\n  }\nend\n\nlocal nav_keys = {\n  -- move between split panes\n  split_nav(\"move\", \"h\"),\n  split_nav(\"move\", \"j\"),\n  split_nav(\"move\", \"k\"),\n  split_nav(\"move\", \"l\"),\n  -- resize panes\n  split_nav(\"resize\", \"h\"),\n  split_nav(\"resize\", \"j\"),\n  split_nav(\"resize\", \"k\"),\n  split_nav(\"resize\", \"l\"),\n}\n\n-- wezterm config\nlocal config = {}\n\nconfig.keys = nav_keys\n```\n\n## Usage\n\n- **Navigate**: Use `Ctrl + h/j/k/l` to move between panes.\n- **Resize**: Use `META + h/j/k/l` to resize panes. (`META` is `Alt` key on Windows and `Option` key on macOS)\n\n**Note**: Resize only for wezterm panes, not for neovim panes.\nIf you want to resize neovim panes, you need write your own keybindings in neovim.\n\n## Inspiration and Thanks\n- **[smart-split.nvim](https://github.com/mrjones2014/smart-splits.nvim)** by @mrjones2014\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fwezterm-move.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletieu%2Fwezterm-move.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fwezterm-move.nvim/lists"}