{"id":15114302,"url":"https://github.com/DavidRR-F/quick_domains.wezterm","last_synced_at":"2025-09-27T18:30:38.135Z","repository":{"id":256049318,"uuid":"854167313","full_name":"DavidRR-F/quick_domains.wezterm","owner":"DavidRR-F","description":"Quckly search and attach to wezterm domains with a click of a keybind","archived":false,"fork":false,"pushed_at":"2024-11-10T01:09:50.000Z","size":58,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T08:32:32.078Z","etag":null,"topics":["domains","plugin","shell","ssh-config","wez","wezterm","wezterm-domains","wezterm-plugin"],"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/DavidRR-F.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":"2024-09-08T14:57:01.000Z","updated_at":"2024-12-03T12:59:01.000Z","dependencies_parsed_at":"2024-09-12T12:05:55.563Z","dependency_job_id":null,"html_url":"https://github.com/DavidRR-F/quick_domains.wezterm","commit_stats":null,"previous_names":["davidrr-f/quick_domains.wezterm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fquick_domains.wezterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fquick_domains.wezterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fquick_domains.wezterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fquick_domains.wezterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidRR-F","download_url":"https://codeload.github.com/DavidRR-F/quick_domains.wezterm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234450839,"owners_count":18834586,"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":["domains","plugin","shell","ssh-config","wez","wezterm","wezterm-domains","wezterm-plugin"],"created_at":"2024-09-26T01:41:11.386Z","updated_at":"2025-09-27T18:30:37.821Z","avatar_url":"https://github.com/DavidRR-F.png","language":"Lua","funding_links":[],"categories":["Session"],"sub_categories":[],"readme":"# ⚡ Quick Domains\n\nA faster way to search and attach to domains in wezterm. Inspired by [smart_workpace_switcher.wezterm](https://github.com/MLFlexer/smart_workspace_switcher.wezterm)\n\n## Quick Look\n\n![Peek 2024-09-14 06-44](https://github.com/user-attachments/assets/79070918-25fa-47bf-8d8f-35f776c1edfc)\n\n#### Dependencies\n\nThere are no package dependencies, but you need to configured your\n`.ssh/config` [Here](https://wezfurlong.org/wezterm/config/lua/wezterm/enumerate_ssh_hosts.html) to select ssh domains using auto-configuration with this plugin.\n\n### 🚀 Install\n\nThis is a wezterm plugin. It can be installed by importing the repo and calling the `apply_to_config` function. It is important that the `apply_to_config` function is called after keys and key_tables have been set.\n```lua \nlocal domains = wezterm.plugin.require(\"https://github.com/DavidRR-F/quick_domains.wezterm\")\ndomains.apply_to_config(config)\n```\n\n### 🎨 Configuration\n\nThe `apply_to_config` function takes a second parameter opts. To override any options simply pass a table of the desired changes.\n\n```lua\ndomains.apply_to_config(\n  config,\n  {\n    keys = {\n      attach = {\n        key  = 's',\n        mods = 'SHIFT',\n        tbl  = 'tmux'\n      },\n      vsplit = {\n        key  = 'v',\n        mods = 'SHIFT',\n        tbl  = 'tmux'\n      },\n      hsplit = {\n        key  = 'h',\n        mods = 'SHIFT',\n        tbl  = 'tmux'\n      }\n    }\n  }\n)\n```\n\nYou can set a custom [wezterm format](https://wezfurlong.org/wezterm/config/lua/wezterm/format.html) for the domain fuzzy selector items \n\n```lua \ndomains.formatter = function(icon, name, label)\n  return wezterm.format({\n    { Attribute = { Italic = true } },\n    { Foreground = { AnsiColor = 'Fuchsia' } },\n    { Background = { Color = 'blue' } },\n    { Text = icon .. ' ' .. name .. ': ' .. label },\n  })\nend\n```\n\nYou can enable auto configuration of [ssh_domains](https://wezfurlong.org/wezterm/config/lua/wezterm/enumerate_ssh_hosts.html?h=ssh) and [exec_domains](https://wezfurlong.org/wezterm/config/lua/ExecDomain.html#example-docker-domains) by disabling the ignore configurations\n\n```lua \n{\n  keys = ...,\n  icons = ...,\n  auto = {\n    ssh_ignore = false,\n    exec_ignore = {\n      ssh = false,\n      docker = false,\n      kubernetes = false\n    },\n  }\n}\n```\n\n### 🛠️ Defaults\n\nThese are the current default setting the can be overridden on your `apply_to_config` function\n\n```lua \n{\n  keys = {\n    -- open domain in new tab\n    attach = {\n      -- mod keys for fuzzy domain finder\n      mods = 'CTRL',\n      -- base key for fuzzy domain finder\n      key = 'd',\n      -- key table to insert key map to if any\n      tbl = '',\n    },\n    -- open domain in split pane \n    -- excludes remote domains\n    -- add remote domains as exec domain for split binds\n    vsplit = {\n      key  = 'v',\n      mods = 'CTRL',\n      tbl  = ''\n    },\n    hsplit = {\n      key  = 'h',\n      mods = 'CTRL',\n      tbl  = ''\n    }\n },\n  -- swap in and out icons for specific domains\n  icons = {\n    hosts = '',\n    ssh = '󰣀',\n    tls = '󰢭',\n    unix = '',\n    exec = '',\n    bash = '',\n    zsh = '',\n    fish = '',\n    pwsh = '󰨊',\n    powershell = '󰨊',\n    wsl = '',\n    windows = '',\n    docker = '',\n    kubernetes = '󱃾',\n  },\n  -- auto-configuration\n  auto = {\n    -- disable ssh multiplex auto config\n    ssh_ignore = true,\n    -- disable exec domain auto configs\n    exec_ignore = {\n      ssh = true,\n      docker = true,\n      kubernetes = true\n    },\n  },\n  -- default shells\n  docker_shell = '/bin/bash',\n  kubernetes_shell = '/bin/bash'\n}\n```\n\nThis is the current default formatter function that can be overridden \n\n```lua \ndomains.formatter = function(icon, name, _)\n    return wezterm.format({ \n        { Text = icon .. ' ' .. string.lower(name) } \n    })\nend\n```\n### 🔔 Events\n\n`quick_domain.fuzzy_selector.opened`\n\n| parameter | description |\n|:----------|:------------|\n| window    | MuxWindow Object |\n| pane      | MuxPane Object   |\n\n`quick_domain.fuzzy_selector.selected`\n\n| parameter | description |\n|:----------|:------------|\n| window    | MuxWindow Object |\n| pane      | MuxPane Object   |\n| id        | Domain ID |\n\n`quick_domain.fuzzy_selector.canceled`\n\n| parameter | description |\n|:----------|:------------|\n| window    | MuxWindow Object |\n| pane      | MuxPane Object   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavidRR-F%2Fquick_domains.wezterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDavidRR-F%2Fquick_domains.wezterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavidRR-F%2Fquick_domains.wezterm/lists"}