🌐 Supporting multiple languages:
Website Opener is a Flow Launcher plugin that enables users to quickly open, manage, and search websites. It supports adding, removing, and searching websites by name, with a context menu for copying URLs or deleting entries. Language prompts can be switched dynamically (e.g., English or Chinese) using JSON files in the dictionary folder.
- Add Websites: Use
gw add <name> <url>to add a website, confirmed by pressing Enter. - Remove Websites: Use
gw remove <name>to delete a website, confirmed by pressing Enter. - Search Websites: Enter
gw <keyword>to search websites by name. - Context Menu: Right-click a website to copy its URL or delete it.
- Language Switching: Use
gw set language <lang>(e.g.,zh,en) to switch prompt languages, stored insettings.json. - Unicode Support: Supports Chinese and other Unicode characters in website names.
- Security: Sanitizes inputs to prevent invalid characters and validates URLs.
- Prerequisites:
- Flow Launcher v1.20.2 or later.
- Python 3.8 (e.g.,
D:\env\python3.8\pythonw.exe).
- Install in Flow Launcher:
pm install WebsiteOpener by zephyr
- Install Plugin:
- Restart Flow Launcher
- Verify Setup:
- Open Flow Launcher (
Alt + Space), typegw, and check if the plugin loads.
- Open Flow Launcher (
- List Websites: Type
gwto view all saved websites or a message if the list is empty. - Add Website: Type
gw add grok https://grok.com, then press Enter to confirm. - Remove Website: Type
gw remove grok, then press Enter to confirm. - Search Website: Type
gw grokto find websites containing "grok". - Switch Language: Type
gw set language ento switch to English prompts (orzhfor Chinese). - Context Menu: Right-click a website result to copy its URL or delete it.
- Example:
gw add grok https://grok.com # Shows "Confirm adding website grok" gw grok # Shows "Open grok" with URL gw set language zh # Switches to Chinese prompts
- Dynamic Languages: Prompts are loaded from
dictionary/<lang>.json(e.g.,zh.json,en.json). - Add New Language:
- Create a new JSON file (e.g.,
dictionary/ja.json) with the same structure aszh.json. - Example
ja.json:{ "empty_list": "ウェブサイトリストが空です", "empty_list_sub": "'add 名前 URL' または 'remove 名前' を使用してウェブサイトを管理、または 'set language <lang>' で言語を設定", ... } - Use
gw set language jato switch to the new language.
- Create a new JSON file (e.g.,
- Default Language: Syncs with Flow Launcher’s language (
zh-CN→zh,en-US→en).
- Log File: Check
C:\Users\<YourUsername>\AppData\Roaming\FlowLauncher\Plugins\goWeb\plugin.logfor errors. - Common Issues:
- Language not loading: Ensure
dictionary/<lang>.jsonexists and is valid JSON. - Plugin not responding: Verify Python 3.8 and dependencies (
pyflowlauncher,pyperclip). - Invalid URL: URLs must start with
http://orhttps://.
- Language not loading: Ensure
MIT License. See LICENSE for details.