Skip to content

Add Flashlang - an extension for quickly searching vocabulary by AI. #18185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

moojing
Copy link
Contributor

@moojing moojing commented Mar 27, 2025

Description

This is an extension that combines AI-powered translation with flashcard learning system.

You can search vocabulary you want to learn and add it to your flashcard deck,
then review your flashcards regularly to improve retention.

Commands

  • Language Settings : set the native language & learning language
  • Review Flash Card
  • Translate It for Me : search the vocabulary you've searched before or translate a new one.

Screencast

Mar-27-2025.22-44-43.mp4

Checklist

- feat: update npm lock
- fix: command title
- fix: code style.
- feat: update category.
- fix: add to flashcards issue
- fix: selected item issue when open by shortcut.
- feat: fix review issue.
- feat: add fuzzy-search
- feat: implement flashcard and search history management
- feat: read content from selection
- feat: refine search flow.
- feat: refactor translation command to use selected text and improve error handling
- feat: enhance translation prompt for clarity and detail
- feat: fix history function
- feat: add review card function and refersh function.
- chore: remove unnecessary logic
- feat: add history function.
- feat: refine instructions.
- feat: store translation result into translation-history as a key of storage.
- feat: refine prompt.
- feat: update prompt in tool
- feat: refine ux.
- refine prompt.
- feat: add prompt.
- feat: rearrange language order.
- feat: add language list.
- init
@raycastbot
Copy link
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Mar 27, 2025
moojing added 4 commits March 27, 2025 13:12
- feat: lock the selectedItem when ai content is loading.
- feat: lock the search text while ai content is loading.
- fix: image size.
- feat: update image in readme.
- feat: update image in readme.
- feat: add readme and images.
- feat: add logo.
- fix: lint
- feat: adjust order of action
- chore: remove console.
- feat: prevent updating to wrong word while loading.
- feat: add delete action.
- feat: add generatePromptByText
- feat: add preferences setting.
@moojing moojing marked this pull request as ready for review March 27, 2025 22:57
- fix: image size
- fix: image size
- feat: update images
@moojing moojing changed the title Add flashlang extension Add Flashlang - an extension for quickly search vocabulary by AI. Mar 27, 2025
@moojing moojing changed the title Add Flashlang - an extension for quickly search vocabulary by AI. Add Flashlang - an extension for quickly searchig vocabulary by AI. Mar 27, 2025
@moojing moojing changed the title Add Flashlang - an extension for quickly searchig vocabulary by AI. Add Flashlang - an extension for quickly searching vocabulary by AI. Mar 27, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

The PR introduces the new flashlang extension integrating AI translation with a flashcard learning system.

• New extension added with commands for language settings, flashcard review, and translation history.
• CHANGELOG.md entry correctly ends with {PR_MERGE_DATE}.
• In /extensions/flashlang/src/tools/translate-the-vocabulary.ts, using replace may only target the first occurrence; consider replaceAll for multiple placeholder replacements.
• The [[learningLanguage]] placeholder in /extensions/flashlang/src/constants/prompts.ts may remain unreplaced.
• Consider awaiting Clipboard.clear() in /extensions/flashlang/src/utils/index.ts to ensure proper asynchronous handling.

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

19 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile

@andreaselia
Copy link
Contributor

Hey @moojing 👋

Thanks for your PR! 🎉

There's a default Raycast extension icon file. Could you either update it or remove it if it's not needed, please?

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

Successfully merging this pull request may close these issues.

4 participants