Skip to content

v2.3.3: Copy File Name, settings backup, and permission fixes - #174

Merged
wflixu merged 7 commits into
mainfrom
dev
Nov 7, 2026
Merged

wflixu merged 7 commits into
mainfrom
dev

Conversation

@wflixu

@wflixu wflixu commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Summary

This release adds a Copy File Name action, fixes two Direct Delete / new-file
permission issues, reworks the About page, and implements the previously
placeholder Settings Management tools.

Changes

Actions

  • Direct Delete now skips the confirmation only when the menu item was marked
    "(skip confirmation)" — i.e. Option was held when the menu was built. Pressing
    Option after the menu opens no longer skips it.
  • New Copy File Name action, placed after Copy Path. It runs through the host
    app, so it is disabled while RClick is not running.
  • initializeDefaultData now backfills built-in actions missing from an existing
    store and syncs built-in icons, so upgrades receive actions added in later
    releases.

New file

  • Auto-rename waits for Finder to become active instead of relying on fixed
    delays, so it stops missing the rename step on slow folders.
  • When Accessibility is missing, one alert explains the permission; later
    attempts stay silent. The flag re-arms when permission is available again.

Settings

  • About: removed the duplicate logo/name/version block (the sidebar already
    shows them), merged version/build and update status into one section, moved
    the description into the footer, and sized the GitHub mark to the row text.
  • Permissions: the accessibility row now shows Authorized / Not Authorized
    like the Finder extension row. The hint moved to the footer and uses the
    version-specific permission name — Accessibility on macOS 26 and earlier,
    Device Control & Data Access on macOS 27+.
  • Settings Management:
    • Export / Import write a versioned JSON backup covering apps, actions, file
      types, common folders and preferences.
    • Import confirms the replacement, skips apps not installed on this Mac, and
      clears template paths that no longer exist so the built-in template takes
      over.
    • Export Logs writes the main process's OSLog entries.
    • Reset All Settings now restores defaults instead of only logging.
  • Export reads preferences from AppState rather than raw UserDefaults, so
    @AppStorage defaults (collapsed new-file and common-folder menus) are
    preserved.

Notes

  • Security-scoped bookmarks are not part of a backup; folder access may need to
    be granted again after import.
  • App and template entries store paths only, not file contents.
  • Version bumped to 2.3.3.

Testing

  • xcodebuild build
  • xcodebuild test — includes new tests for action backfill and settings backup
  • scripts/check-localization.py

Changelog

See CHANGELOG.md.

wflixu and others added 7 commits November 7, 2026 19:05
…arked

The Finder extension tracked Option in three places — the menu build, a
1-second polling window, and the click callback — and skipped the
confirmation when any of them reported it. The menu title, however, can
only be decided at build time, so pressing Option after the menu opened
skipped the prompt while the item still read "Delete Direct".

Use the menu-build sample as the single source of truth: if Option was
held when the menu was built, the item is marked "(skip confirmation)"
and the click skips the prompt; otherwise the prompt always appears.
This removes the polling timer, the recent-seen window, and the host
app's live-modifier fallback, so the title and the behavior can no
longer diverge.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copy File Name puts the selected item's name — without its path — on the
clipboard, placed right after Copy Path. It runs through the host app
like the other file actions, so it is disabled while RClick is not
running; only Copy Path stays available offline.

initializeDefaultData used to seed actions only when the table was empty,
so a built-in action added in a later release never reached an existing
install. It now inserts missing defaults at their declared position,
renumbers the rest without disturbing the existing order, and syncs the
icons of built-in actions to the current defaults.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Renaming a newly created file relied on fixed 0.35s + 0.25s delays before
posting Return to Finder. On a slow folder the key arrived before Finder
had selected the file, so the rename only worked sometimes. Wait for
Finder to become the frontmost app instead (up to 2 seconds), then give
the selection a moment to settle before sending Return.

When the Accessibility permission is missing, the old code only logged a
warning, which looked like a broken feature. Show one alert explaining
that the permission is needed for auto-rename and must be granted to the
RClick app rather than the Finder extension, then stay quiet. The flag is
cleared whenever the permission is available, so revoking it later
produces one reminder again.

Settings now labels the permission row with what it is used for and
states the same main-app-versus-extension distinction in the footer.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The sidebar already shows the logo, name and version, so the About page
repeated all three in a centered block that took roughly 250pt and
pushed the rest of the page below the fold at the default window size.

Drop the identity block and fold version and build into a normal
settings row in the same section as the update status, with the app
description in the section footer. Version now reads "2.3.2 (build)"
with the build in secondary text, and the GitHub mark is sized to match
the row's text instead of its 32pt source asset.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The accessibility row had no status text next to its Settings button,
while the Finder extension row above it showed Authorized / Not
Authorized. Add the same description so the two rows read consistently.

Its explanatory caption sat under the label and made that row taller
than its neighbour. Move the hint to the section footer, and phrase it
around where the permission is used rather than the main-app-versus-
extension detail. The footer also no longer hardcodes "Accessibility":
it uses the version-specific name, so macOS 27 shows "Device Control &
Data Access" in both the label and the path.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Export, Import, Export Logs and Reset All Settings were placeholders:
they opened a panel, wrote a log line and changed nothing.

Export now writes a versioned JSON document (apps, actions, file types,
common folders and preferences). Import validates it, confirms that the
whole configuration will be replaced, skips apps that are not installed
on this Mac, clears template paths that no longer exist so the built-in
template takes over, and reapplies the menu and preference state.
Security-scoped bookmarks are deliberately excluded because they are
tied to the Mac that created them; the confirmation says folder access
may need to be granted again.

Export Logs writes the main process's OSLog entries, and Reset now
restores apps, actions, file types, common folders and preferences
instead of only logging.

Preferences are read from AppState rather than raw UserDefaults:
@AppStorage defaults are never written to the defaults, so the collapsed
new-file and common-folder menus (both default true) were exported as
false.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
@wflixu
wflixu merged commit d3adb9f into main Nov 7, 2026
1 check passed
@wflixu

wflixu commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

close #172 #173 #161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant