Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ playground.xcworkspace

output/*
Build/
DerivedData/
DerivedData/

# macOS
.DS_Store
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ All notable changes to RClick are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

### Changed
- Keep Finder workspace icon caches warm with background preloading and main-thread image resizing
- Use lightweight heartbeat replies and reconnect from the last peer activity
- Direct Delete now always asks for confirmation before permanently removing files. Hold Option while choosing it to skip the prompt

### Added
- Built-in app presets, per-app toolbar/context-menu visibility, and none/simple/original icon styles
- Automatic/on/off containing-folder behavior for terminal and other apps, with compatible persistence and IPC
- Offline Copy Path and a clickable hint that quietly relaunches the host
- Settings open on manual launch/reopen while hint-triggered and detected login launches stay quiet

### Fixed
- Update Finder extension and Accessibility settings links and version-specific guidance
- Refresh permission status on window focus and while the page is visible

### Removed
- The `custom_menu.json` layout and the Settings → General → Custom Menu controls. The menu is now always built from the apps, actions, new-file types and common folders configured in Settings

## [2.3.1] - 2026-10-14

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RClick is a macOS desktop application that extends Finder's context menu with cu
- SwiftData (persistence)
- FinderSync framework (Finder extension)
- DistributedNotificationCenter (inter-process communication)
- Xcode 16+ (required for development)
- Xcode 26+ (required for development)

## Architecture

Expand Down Expand Up @@ -66,7 +66,7 @@ xcodebuild -project RClick.xcodeproj -scheme RClick -configuration Release
```

### Running
- Open `RClick.xcodeproj` in Xcode 16+
- Open `RClick.xcodeproj` in Xcode 26+
- Select the RClick scheme
- Press Cmd+R to build and run
- The FinderSync extension will be automatically registered
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.
| Tool | Version |
|------|---------|
| **macOS** | 15.6 (Sequoia) or later |
| **Xcode** | 16.4 or later |
| **Xcode** | 26 or later |
| **Swift** | 6.2 or later |

### Building the Project
Expand Down
351 changes: 292 additions & 59 deletions FinderSyncExt/FinderSyncExt.swift

Large diffs are not rendered by default.

37 changes: 36 additions & 1 deletion FinderSyncExt/Localizable.xcstrings
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
{
"sourceLanguage": "en",
"strings": {
"%@ (skip confirmation)": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "%@ (skip confirmation)"
}
},
"es": {
"stringUnit": {
"state": "translated",
"value": "%@ (sin confirmación)"
}
},
"fr": {
"stringUnit": {
"state": "translated",
"value": "%@ (sans confirmation)"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "%@(確認なし)"
}
},
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "%@(跳过确认)"
}
}
}
},
"Actions": {
"extractionState": "manual",
"localizations": {
Expand Down Expand Up @@ -311,7 +346,7 @@
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "用...打开"
"value": "用外部应用打开"
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions RClick.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
CODE_SIGN_ENTITLEMENTS = RClick/RClickDebug.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 20261014001;
CURRENT_PROJECT_VERSION = 20261102001;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -505,7 +505,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.3.2;
PRODUCT_BUNDLE_IDENTIFIER = cn.wflixu.RClick;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand All @@ -527,7 +527,7 @@
CODE_SIGN_ENTITLEMENTS = RClick/RClick.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 20261014001;
CURRENT_PROJECT_VERSION = 20261102001;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -543,7 +543,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.3.2;
PRODUCT_BUNDLE_IDENTIFIER = cn.wflixu.RClick;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand Down Expand Up @@ -606,7 +606,7 @@
CODE_SIGN_ENTITLEMENTS = FinderSyncExt/FinderSyncExt.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 20261014001;
CURRENT_PROJECT_VERSION = 20261102001;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -622,7 +622,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.3.2;
PRODUCT_BUNDLE_IDENTIFIER = cn.wflixu.RClick.FinderSyncExt;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand All @@ -641,7 +641,7 @@
CODE_SIGN_ENTITLEMENTS = FinderSyncExt/FinderSyncExt.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 20261014001;
CURRENT_PROJECT_VERSION = 20261102001;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = YES;
Expand All @@ -657,7 +657,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.6;
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.3.2;
PRODUCT_BUNDLE_IDENTIFIER = cn.wflixu.RClick.FinderSyncExt;
PRODUCT_NAME = "$(TARGET_NAME)";
REGISTER_APP_GROUPS = YES;
Expand Down
27 changes: 27 additions & 0 deletions RClick/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class AppState: ObservableObject, ActionStateProviding {
// 常用文件夹总开关(默认关闭)
@AppStorage("showCommonDirs", store: .group) var showCommonDirs: Bool = false

/// 应用图标样式:0=无图标 1=简单图标(默认) 2=原始图标。
/// 存在 App Group 里,扩展通过 MenuConfigPayload.iconStyle 拿到。
@AppStorage("appIconStyle", store: .group) var appIconStyle: Int = RCAppIconStyle.simple.rawValue

// 菜单栏显示走 RClickApp / GeneralSettingsTabView 里的那份(store: .group)。
// 这里曾有一份重复声明,没有任何地方读它;两份 store 不同,留着就是个陷阱。

Expand Down Expand Up @@ -119,6 +123,29 @@ class AppState: ObservableObject, ActionStateProviding {
}
}

/// 更新某个应用在工具栏/右键菜单中的可见性(应用列表行的两个开关)
@MainActor
func updateAppVisibility(id: String, showInToolbar: Bool, showInContextMenu: Bool) {
if let index = apps.firstIndex(where: { $0.id == id }) {
var updatedApp = apps[index]
updatedApp.showInToolbar = showInToolbar
updatedApp.showInContextMenu = showInContextMenu
apps[index] = updatedApp
persist()
}
}

/// 更新某个应用的「选中文件时打开所在目录」开关(`nil` 恢复为跟随预设终端分类)
@MainActor
func updateAppOpensContainingDir(id: String, value: Bool?) {
if let index = apps.firstIndex(where: { $0.id == id }) {
var updatedApp = apps[index]
updatedApp.opensContainingDir = value
apps[index] = updatedApp
persist()
}
}

func getAppItem(rid: String) -> OpenWithApp? {
return apps.first { rid == $0.id }
}
Expand Down
12 changes: 12 additions & 0 deletions RClick/Assets.xcassets/LiveCamIcon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "LiveCamIcon.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions RClick/Assets.xcassets/iMonetIcon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "iMonetIcon.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading