Skip to content

Add import notes feature to settings page#49

Merged
stanleygomes merged 3 commits intomasterfrom
copilot/fix-note-editing-bug
Feb 18, 2026
Merged

Add import notes feature to settings page#49
stanleygomes merged 3 commits intomasterfrom
copilot/fix-note-editing-bug

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Adds an "Import Notes" section to the plugin settings page (before Export) that lets users select multiple files via a file chooser dialog, copies them into the configured notes directory, and registers them in the note storage.

Changes

  • ImportNotesService — Reads selected files and copies them to the notes directory via FileHelper.createFileWithContent. Resolves duplicate filenames by appending a counter (note (1).md).
  • NotesConfigImportNotesPanelComponent — Settings UI panel mirroring the export panel pattern: title, description, import button with JFileChooser (multi-select, files only). Registers imported notes in NoteStorageRepository and shows success/error messages.
  • NotesConfigFormComponent — Wired import panel between "Open folder" and "Export" sections.
  • MyBundle.properties — Added 6 i18n keys for import UI strings.
  • ImportNotesServiceTest — 5 tests: happy path, missing files skipped, empty input, duplicate name resolution, target directory auto-creation.

Design notes

ImportNotesService is kept free of IntelliJ platform dependencies (like ExportNotesService), making it directly unit-testable. Platform integration (settings lookup, repository registration) lives in the UI component.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • download.jetbrains.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Executa essa issue:

#46


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix issue with editing notes functionality Add import notes feature to settings page Feb 18, 2026
Copilot AI requested a review from stanleygomes February 18, 2026 13:10
Copilot AI and others added 2 commits February 18, 2026 10:27
Co-authored-by: stanleygomes <5298153+stanleygomes@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.1.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@stanleygomes stanleygomes marked this pull request as ready for review February 18, 2026 13:59
@stanleygomes stanleygomes merged commit b049e01 into master Feb 18, 2026
7 checks passed
@stanleygomes stanleygomes deleted the copilot/fix-note-editing-bug branch February 18, 2026 13:59
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.

3 participants

Comments