{"id":40418540,"url":"https://github.com/oddfar/newhere","last_synced_at":"2026-01-20T15:04:38.027Z","repository":{"id":326477219,"uuid":"1105701666","full_name":"oddfar/NewHere","owner":"oddfar","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-28T03:42:24.000Z","size":3859,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"antigravity/gemini-3-pro_hign","last_synced_at":"2025-11-30T15:16:13.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/oddfar.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":"2025-11-28T03:07:49.000Z","updated_at":"2025-11-28T03:14:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/oddfar/NewHere","commit_stats":null,"previous_names":["oddfar/newhere"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/oddfar/NewHere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddfar%2FNewHere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddfar%2FNewHere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddfar%2FNewHere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddfar%2FNewHere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddfar","download_url":"https://codeload.github.com/oddfar/NewHere/tar.gz/refs/heads/antigravity/gemini-3-pro_hign","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddfar%2FNewHere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"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-20T15:04:35.632Z","updated_at":"2026-01-20T15:04:38.019Z","avatar_url":"https://github.com/oddfar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NewHere - macOS 右键 \"在此新建文件\" 工具\n\nNewHere 是一个轻量级的 macOS 工具，允许用户通过 Finder (访达) 的右键菜单快速创建各种类型的新文件。它使用 Go 语言编写，结合 AppleScript 和 Automator 实现原生体验。\n\n## ✨ 功能特点\n\n- **右键集成**: 直接集成到 Finder 的 \"快捷操作\" 菜单。\n- **多种文件类型**: 支持创建文本文件、Markdown、Go 源代码、Python 脚本、Shell 脚本、Word 文档、PPT 等。\n- **自定义配置**: 用户可以通过配置文件轻松添加或修改支持的文件类型和默认模板内容。\n- **轻量级**: 核心逻辑由 Go 编写，运行速度快，无臃肿依赖。\n- **原生界面**: 使用 macOS 原生对话框进行交互。\n\n## 📦 安装说明\n\n### 方法一：使用预编译安装包 (推荐)\n\n1. 下载最新的 `NewHere_Installer.dmg`。\n2. 打开 DMG 文件。\n3. 将 **NewHere.app** 拖入您的 **应用程序** (Applications) 文件夹。\n   \u003e **注意**: 必须将应用放入 `/Applications` 目录，否则快捷操作可能无法找到它。\n4. 双击 **NewFileHere.workflow** 并点击 **安装** (Install)。\n5. 如果系统提示，请在 \"系统设置 -\u003e 隐私与安全性 -\u003e 辅助功能\" 中授予 \"NewHere\" 权限。\n\n### 方法二：从源码编译\n\n如果您安装了 Go 环境，可以从源码编译安装：\n\n```bash\n# 克隆仓库\ngit clone https://github.com/oddfar/NewHere.git\ncd NewHere\n\n# 编译并打包 DMG\nmake all\n\n# 安装\nopen NewHere_Installer.dmg\n```\n\n## 🚀 使用指南\n\n1. 打开 Finder (访达)，进入任意文件夹。\n2. 在文件夹空白处点击 **右键**。\n3. 选择 **快捷操作 (Quick Actions)** -\u003e **New File Here**。\n4. 在弹出的对话框中选择要创建的文件类型。\n5. 输入文件名 (支持自定义后缀，如果不输入后缀则使用默认后缀)。\n6. 点击 **创建**，文件将立即出现在当前文件夹中。\n\n## ⚙️ 自定义配置\n\n您可以自定义支持的文件类型和默认模板内容。配置文件位于应用包内：\n\n`/Applications/NewHere.app/Contents/MacOS/config.yaml`\n\n**修改步骤**:\n1. 在应用程序文件夹中找到 `NewHere.app`。\n2. 右键点击 -\u003e **显示包内容**。\n3. 进入 `Contents` -\u003e `MacOS`。\n4. 使用文本编辑器打开 `config.yaml`。\n\n**配置示例**:\n\n```yaml\ntypes:\n  - name: \"Vue 组件\"\n    extension: \"vue\"\n    content: |\n      \u003ctemplate\u003e\n        \u003cdiv\u003e\u003c/div\u003e\n      \u003c/template\u003e\n      \u003cscript\u003e\n      export default {\n        name: 'NewComponent'\n      }\n      \u003c/script\u003e\n      \u003cstyle scoped\u003e\n      \u003c/style\u003e\n```\n\n## 🛠️ 开发\n\n### 项目结构\n\n- `main.go`: 核心应用程序逻辑 (Go)。\n- `config.yaml`: 默认配置文件。\n- `NewFileHere.workflow`: Automator 快捷操作源文件。\n- `Makefile`: 构建和打包脚本。\n\n### 构建命令\n\n- `make build`: 仅编译 Go 二进制文件。\n- `make app`: 编译并组装 `.app` 包。\n- `make dmg`: 打包生成 `.dmg` 安装文件。\n- `make clean`: 清理构建产物。\n\n## 📄 许可证\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddfar%2Fnewhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddfar%2Fnewhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddfar%2Fnewhere/lists"}