Skip to content

Recording Directory: use in copy/paste and single extension preference - #26213

Closed
devmarkpro wants to merge 1 commit into
raycast:mainfrom
devmarkpro:ext/superwhisper
Closed

devmarkpro wants to merge 1 commit into
raycast:mainfrom
devmarkpro:ext/superwhisper

Conversation

@devmarkpro

@devmarkpro devmarkpro commented Mar 10, 2026 •

Copy link
Copy Markdown

Description

  • Copy/Paste Last History use Recording Directory: Copy Last History and Paste Last History now use the configured Recording Directory when set (same as Search History), with fallback to ~/Documents/superwhisper/recordings when it’s not set.
  • Single Recording Directory setting: Recording Directory is now an extension-level preference (Preferences > Extensions > Superwhisper) and is shared by Search History, Copy Last History, and Paste Last History. The duplicate per-command Recording Directory options were removed so users configure it once.

Screencast

ScreenShot 2026-03-10 at 21 59 37@2x

Checklist

- fix lint issues
- Update preference to centralize recording directory configuration.
- Implement recording directory configuration for copy/paste history functionality.
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: superwhisper Issues related to the superwhisper extension platform: macOS labels Mar 10, 2026
@raycastbot

raycastbot commented Mar 10, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you for your first contribution! 🎉

🔔 @nchudleigh @jfkisafk @nagauta @Aayush9029 you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="ext/superwhisper"
FORK_URL="https://github.com/devmarkpro/extensions.git"
EXTENSION_NAME="superwhisper"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

@devmarkpro devmarkpro changed the title Update superwhisper extension Recording Directory: use in copy/paste and single extension preference Mar 10, 2026
@devmarkpro
devmarkpro marked this pull request as ready for review March 10, 2026 21:01
@greptile-apps

greptile-apps Bot commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR consolidates the Recording Directory preference from a per-command setting on Search History into a single extension-level preference shared by all three commands (Search History, Copy Last History, and Paste Last History). It also wires up Copy Last History and Paste Last History to read and use that preference, bringing them in line with the existing Search History behavior.

  • Extension-level recordingDir preference added in package.json; the duplicate command-level entry on search-history is removed.
  • getLatestRecordingByVariant in hooks.ts gains an optional customRecordingsPath parameter and threads it to getRecordings.
  • copy-last-history.ts and paste-last-history.ts now read recordingDir from getPreferenceValues and pass the resolved path to getLatestRecordingByVariant, matching the existing pattern in search-history.tsx.
  • CHANGELOG updated with a correctly placed, {PR_MERGE_DATE}-formatted entry.

Confidence Score: 5/5

  • This PR is safe to merge — the changes are minimal, well-scoped, and consistent with existing patterns in the extension.
  • The consolidation is straightforward: a preference is lifted from command-level to extension-level and two commands are updated to use it. The logic mirrors the already-working search-history.tsx implementation, the CHANGELOG is properly formatted, and no breaking changes or regressions were introduced.
  • No files require special attention.

Important Files Changed

Filename Overview
extensions/superwhisper/package.json Moves recordingDir from a command-level preference on search-history to an extension-level preference, and removes the per-command duplicate. Also adds devmarkpro as a contributor. No issues found.
extensions/superwhisper/src/hooks.ts Adds optional customRecordingsPath parameter to getLatestRecordingByVariant and threads it through to getRecordings. Clean, minimal change.
extensions/superwhisper/src/copy-last-history.ts Now reads recordingDir from the merged extension-level preference and passes the resolved path to getLatestRecordingByVariant, matching the pattern in search-history.tsx.
extensions/superwhisper/src/paste-last-history.ts Same treatment as copy-last-history.ts — reads and applies recordingDir from extension-level preferences. No issues found.
extensions/superwhisper/CHANGELOG.md New entry correctly placed at the top of the file and uses the {PR_MERGE_DATE} placeholder as required.

Last reviewed commit: e43228e

@devmarkpro devmarkpro closed this Mar 11, 2026
@devmarkpro

Copy link
Copy Markdown
Author

Changes are included in this PR: #26221

raycastbot added a commit that referenced this pull request Jun 9, 2026
…ds (#28635)

* fix(superwhisper): apply recordingDir preference to copy/paste commands

- Lift recordingDir to extension-level preferences
- Thread the path through getLatestRecordingByVariant
- Wire it into copy-last-history and paste-last-history

Users keeping recordings outside the default path could configure
Search History but still saw "Please make a recording first" on
Copy and Paste Last History because those commands fell back to the
hardcoded path. This applies the existing preference uniformly.

Related: #25369, #25684, #24272, #24703
Prior art: #26213, #26221

* fix(superwhisper): drop redundant copy/paste fallback path

getRecordings already applies the same homedir-based fallback when no
customRecordingsPath is passed, so duplicating it in the command files
adds noise. Pass recordingDir through directly (coerced to undefined
when empty) and let the canonical fallback in hooks.ts handle it.

* Update CHANGELOG.md

---------

Co-authored-by: Dhruv Suthar <[email protected]>
Co-authored-by: raycastbot <[email protected]>
almatkai pushed a commit to almatkai/raymes-extensions that referenced this pull request Jul 13, 2026
…ds (raycast#28635)

* fix(superwhisper): apply recordingDir preference to copy/paste commands

- Lift recordingDir to extension-level preferences
- Thread the path through getLatestRecordingByVariant
- Wire it into copy-last-history and paste-last-history

Users keeping recordings outside the default path could configure
Search History but still saw "Please make a recording first" on
Copy and Paste Last History because those commands fell back to the
hardcoded path. This applies the existing preference uniformly.

Related: raycast#25369, raycast#25684, raycast#24272, raycast#24703
Prior art: raycast#26213, raycast#26221

* fix(superwhisper): drop redundant copy/paste fallback path

getRecordings already applies the same homedir-based fallback when no
customRecordingsPath is passed, so duplicating it in the command files
adds noise. Pass recordingDir through directly (coerced to undefined
when empty) and let the canonical fallback in hooks.ts handle it.

* Update CHANGELOG.md

---------

Co-authored-by: Dhruv Suthar <[email protected]>
Co-authored-by: raycastbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: superwhisper Issues related to the superwhisper extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants