From 668de78e6f57168f12f210a02c6e6f5f240d3d1a Mon Sep 17 00:00:00 2001 From: Xheldon Date: Thu, 31 Jul 2025 14:54:19 +0800 Subject: [PATCH] Update plugin ID and name to 'git-folder-sync' - Changed plugin ID from 'git-sync' to 'git-folder-sync' - Updated plugin name to 'Git Folder Sync' consistently - Updated cache key to match new ID - Bumped version to 1.0.1 - Updated all documentation and i18n strings --- CHANGELOG.md | 11 +++++++++-- README.md | 6 +++--- README_CN.md | 2 +- file-cache.ts | 2 +- i18n-simple.ts | 4 ++-- main.js | 6 +++--- manifest.json | 6 +++--- package.json | 2 +- versions.json | 3 ++- 9 files changed, 25 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 609fed0..1e0bd45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.1] - 2024-12-19 + +### Changed +- Updated plugin name from "Git Sync" to "Git Folder Sync" for better clarity +- Consistent naming across all files and documentation +- Updated internationalization strings + ## [1.0.0] - 2024-12-19 ### Added -- Initial release of Git Sync plugin +- Initial release of Git Folder Sync plugin - Git synchronization with GitHub repositories - Support for folder-specific sync (not entire repository) - Image upload to cloud storage services: @@ -29,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Features -- **Git Sync**: Bidirectional synchronization with GitHub +- **Git Folder Sync**: Bidirectional synchronization with GitHub - **Image Processing**: Paste images and automatically upload to cloud storage - **Internationalization**: Full Chinese and English support - **Mobile Support**: Works on both desktop and mobile devices diff --git a/README.md b/README.md index 15e16c2..2dbab6a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Git Sync Obsidian Plugin +# Git Folder Sync Obsidian Plugin An Obsidian plugin that supports synchronization with GitHub repositories, built with a modern interface and hot reload development support. @@ -22,7 +22,7 @@ An Obsidian plugin that supports synchronization with GitHub repositories, built 1. Download the latest release files 2. Extract files to your Obsidian plugins directory: `{vault}/.obsidian/plugins/git-folder-sync/` 3. Restart Obsidian -4. Enable the "Git Sync" plugin in settings +4. Enable the "Git Folder Sync" plugin in settings ### Development Installation @@ -134,7 +134,7 @@ Click the settings icon in the left sidebar to open the configuration interface, While editing notes, you can access the sync menu through: 1. Command palette: `Ctrl/Cmd + P` → Search for "Show Sync Menu" -2. Right-click in editor → Select "Git Sync" +2. Right-click in editor → Select "Git Folder Sync" 3. Status bar sync button (bottom right) Menu options: diff --git a/README_CN.md b/README_CN.md index ea64e94..a7a2781 100644 --- a/README_CN.md +++ b/README_CN.md @@ -22,7 +22,7 @@ 1. 下载最新的 release 文件 2. 将文件解压到你的 Obsidian 插件目录:`{vault}/.obsidian/plugins/git-folder-sync/` 3. 重启 Obsidian -4. 在设置中启用"Git Sync"插件 +4. 在设置中启用"Git Folder Sync"插件 ### 开发安装 diff --git a/file-cache.ts b/file-cache.ts index ab2c6b8..edc7da1 100644 --- a/file-cache.ts +++ b/file-cache.ts @@ -2,7 +2,7 @@ import { FileCache, FileCacheManager } from './types'; export class FileCacheService implements FileCacheManager { private cache: Map = new Map(); - private readonly CACHE_KEY = 'git-sync-file-cache'; + private readonly CACHE_KEY = 'git-folder-sync-file-cache'; private readonly DEFAULT_CACHE_AGE = 5 * 60 * 1000; // 5 minutes cache validity period constructor() { diff --git a/i18n-simple.ts b/i18n-simple.ts index e96eb06..45e28ac 100644 --- a/i18n-simple.ts +++ b/i18n-simple.ts @@ -209,7 +209,7 @@ const translations = { }, en: { // Settings interface - 'settings.title': 'Git Sync Settings', + 'settings.title': 'Git Folder Sync Settings', 'settings.language.name': 'Interface Language', 'settings.language.desc': 'Select the display language for the plugin interface', 'settings.language.auto': 'Follow Obsidian', @@ -378,7 +378,7 @@ const translations = { 'status.bar.synced': 'Synced', // Plugin info - 'plugin.name': 'Git Sync', + 'plugin.name': 'Git Folder Sync', 'command.show.sync.menu': 'Show Sync Menu', // Test URL results diff --git a/main.js b/main.js index 53fb4a8..681de8d 100644 --- a/main.js +++ b/main.js @@ -526,7 +526,7 @@ var init_i18n_simple = __esm({ }, en: { // Settings interface - "settings.title": "Git Sync Settings", + "settings.title": "Git Folder Sync Settings", "settings.language.name": "Interface Language", "settings.language.desc": "Select the display language for the plugin interface", "settings.language.auto": "Follow Obsidian", @@ -686,7 +686,7 @@ var init_i18n_simple = __esm({ "status.bar.local.modified": "Local modified", "status.bar.synced": "Synced", // Plugin info - "plugin.name": "Git Sync", + "plugin.name": "Git Folder Sync", "command.show.sync.menu": "Show Sync Menu", // Test URL results "test.url.user": "User", @@ -4598,7 +4598,7 @@ var FileCacheService = class { // 5 minutes cache validity period constructor() { this.cache = /* @__PURE__ */ new Map(); - this.CACHE_KEY = "git-sync-file-cache"; + this.CACHE_KEY = "git-folder-sync-file-cache"; this.DEFAULT_CACHE_AGE = 5 * 60 * 1e3; this.loadCacheFromStorage(); } diff --git a/manifest.json b/manifest.json index c085f3e..59857a4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { - "id": "git-sync", - "name": "Obsidian Git Folder Sync & Image Upload", - "version": "1.0.0", + "id": "git-folder-sync", + "name": "Git Folder Sync", + "version": "1.0.1", "minAppVersion": "0.15.0", "description": "Synchronize files in your Obsidian Vault with a specified directory in the designated GitHub repository (rather than the entire repository); send your images to cloud storage services.", "author": "Xheldon", diff --git a/package.json b/package.json index 39575d4..fe277d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-folder-sync", - "version": "1.0.0", + "version": "1.0.1", "description": "Synchronize files in your Obsidian Vault with a specified directory in the designated GitHub repository (rather than the entire repository); send your images to cloud storage services.", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 40825b2..04dc8d7 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { - "1.0.0": "0.15.0" + "1.0.0": "0.15.0", + "1.0.1": "0.15.0" } \ No newline at end of file