Proton Search

by Percefia
5
4
3
2
1
Score: 50/100

Description

Search Proton Drive files and create reference notes with a browser link and a local path.

Reviews

No reviews yet.

Stats

0
stars
54
downloads
0
forks
29
days
29
days
29
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
50
commits

Latest Version

a month ago

Changelog

First release of Proton Search.

  • Search Proton Drive files locally
  • Create reference notes with url and path properties only
  • Open files in the browser or on this computer

README file from

Github

Search your Proton Drive files from Obsidian and create small reference notes.

This is an independent project. It is not affiliated with, endorsed by, or sponsored by Proton AG.

Forked from yunusey/obsidian-proton-integration.

What it does

  • Sign in to Proton Drive in your browser
  • Search files by name or path (local MiniSearch index, no search server)
  • Create a markdown note with two properties only: url and path
  • Open the file in the browser, or on this computer if the Proton Drive app is installed

The plugin does not embed or preview Proton Drive files inside Obsidian.

Install

Until it is on the Obsidian community plugin directory:

  1. Build the plugin (npm install then npm run build).
  2. Copy main.js, manifest.json, and styles.css into .obsidian/plugins/proton-search/ in your vault.
  3. Enable Proton Search in Obsidian settings.

Usage

  1. Open Settings → Proton Search and click Sign in, or run Sign in to proton drive.
  2. Complete sign-in in your browser, then return to Obsidian.
  3. Run Search proton drive files (or click the search ribbon icon) and pick a file.
  4. Confirm or change the note name (default: the Proton file name).
  5. A note is created in the Proton Drive folder at the vault root (or another folder you set). Notes are stored flat, with no subfolders.

Each note has only two properties:

  • url — the file on Proton Drive in the browser
  • path — a file:// link on this computer, if the Proton Drive app folder is found

With the note open, or from the file menu:

  • Open proton file in browser
  • Open proton file on this computer

Rebuild the search index from settings or with Refresh proton drive search index. Photos are optional and can take a long time.

Privacy

  • Session: sign-in data is saved in plugin storage so you stay signed in after restarting Obsidian. You can enable Keep credentials in memory only if you prefer to sign in again each time. Saved credentials are written to .obsidian/plugins/proton-search/data.json, unencrypted. Do not share this file, and do not add it to version control.
  • Search index: file names and folder paths are stored locally in data.json. File contents are not indexed.
  • Client UID: a random protonClientUid is stored so the Proton Drive SDK can identify this installation. It is not a credential.

[!CAUTION] The Proton Drive SDK is still evolving and does not yet ship standalone auth. Sign-in follows the same pattern as the official Drive CLI.

Development

npm install
npm run dev
npm run build
npm run typecheck

License

MIT