Skip to content

Commit

Permalink
Rename to 'Phone to Note to Obsidian' to reflect service name change.…
Browse files Browse the repository at this point in the history
… Leave ID alone to allow transition
  • Loading branch information
dgarrett committed Dec 11, 2023
1 parent 7b27687 commit a680618
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
## Phone to Roam to Obsidian
## Phone to Note to Obsidian

This is a Phone to Roam (https://www.phonetoroam.com) client for Obsidian
(https://obsidian.md). Phone to Roam allows sending notes to your note-keeping
This is a Phone to Note (https://phonetonote.com) client for Obsidian
(https://obsidian.md). Phone to Note allows sending notes to your note-keeping
software via SMS, Telegram, email, and a few other integrations.

The plugin will periodically fetch new notes from Phone to Roam and append them
to the Daily Note of the day that the message was sent.
The plugin will periodically (one per minute) fetch new notes from Phone to Note
and append them to the Daily Note of the day that the message was sent.

## Configuration

### roam_key
### ptn_key

Get your `roam_key` by signing in to https://www.phonetoroam.com and set it in
the plugin settings.
Get your `ptn_key` by signing in to https://phonetonote.com and set it in the
plugin settings.

### Auto append

Set hashtags or other text to append to every note from Phone to Roam.
Set hashtags or other text to append to every note from Phone to Note.

### Get raw text

Turn this on to get the exact text you sent to Phone to Roam, without any of the
parsing and replacement of dates that Phone to Roam normally performs.
Turn this on to get the exact text you sent to Phone to Note, without any of the
parsing and replacement of dates that Phone to Note normally performs.
14 changes: 7 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface PluginSettings {

const DEFAULT_SETTINGS: PluginSettings = {
roam_key: '',
auto_append: '#phonetoroam',
auto_append: '#phonetonote',
use_raw_text: false
}

Expand Down Expand Up @@ -59,7 +59,7 @@ export default class PhoneToRoamPlugin extends Plugin {

await obsidianApp.vault.modify(dailyNote, newNoteText);

new Notice('Added new Phone to Roam note to ' + dailyNote.path);
new Notice('Added new Phone to Note note to ' + dailyNote.path);

// Mark as synced
const messageUrl = 'https://app.phonetonote.com/feed/ptn-' + phoneNote.id + '.json';
Expand Down Expand Up @@ -101,11 +101,11 @@ class PhoneToRoamSettingTab extends PluginSettingTab {

containerEl.empty();

containerEl.createEl('h2', { text: 'Phone to Roam to Obsidian Settings' });
containerEl.createEl('h2', { text: 'Phone to Note to Obsidian Settings' });

new Setting(containerEl)
.setName('roam_key')
.setDesc('From www.phonetoroam.com')
.setName('ptn_key')
.setDesc('From phonetonote.com')
.addText(text => text
.setPlaceholder('Required')
.setValue(this.plugin.settings.roam_key)
Expand All @@ -118,7 +118,7 @@ class PhoneToRoamSettingTab extends PluginSettingTab {
.setName('Auto append')
.setDesc('Hashtags or other text to append to every note')
.addText(text => text
.setPlaceholder('E.g. #phonetoroam')
.setPlaceholder('E.g. #phonetonote')
.setValue(this.plugin.settings.auto_append)
.onChange(async (value) => {
this.plugin.settings.auto_append = value;
Expand All @@ -127,7 +127,7 @@ class PhoneToRoamSettingTab extends PluginSettingTab {

new Setting(containerEl)
.setName('Get raw text')
.setDesc('Ignore Phone to Roam\'s parsed dates, etc')
.setDesc('Ignore Phone to Note\'s parsed dates, etc')
.addToggle(toggle => toggle
.setValue(this.plugin.settings.use_raw_text)
.onChange(async (value) => {
Expand Down
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "phone-to-roam-to-obsidian",
"name": "Phone to Roam to Obsidian",
"version": "1.0.1",
"name": "Phone to Note to Obsidian",
"version": "1.0.2",
"minAppVersion": "0.9.12",
"description": "An Obsidian client for phonetoroam.com",
"description": "An unofficial Obsidian client for phonetonote.com",
"author": "Dylan Garrett",
"authorUrl": "https://dylan-garrett.com",
"isDesktopOnly": false
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phone-to-roam-to-obsidian",
"version": "1.0.0",
"description": "An Obsidian client for phonetoroam.com",
"description": "An unofficial Obsidian client for phonetonote.com",
"main": "main.js",
"scripts": {
"dev": "rollup --config rollup.config.js -w",
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.0.0": "0.9.12",
"1.0.1": "0.9.12"
}
"1.0.1": "0.9.12",
"1.0.2": "0.9.12"
}

0 comments on commit a680618

Please sign in to comment.