You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add documentation for "Adjust Filenames to current settings" command and reorganize documentation slightly to reflect the organization of the Settings Tabs
After installing, visit the plugin configuration page to enter the Readwise Access Token, which can be found here: [https://readwise.io/access_token](https://readwise.io/access_token)
39
-
40
-
Then run any of the below commands or click the Readwise toolbar to sync for the first time.
41
-
42
36
## Commands
43
37
44
38
-`Sync new highlights`: Download all new highlights since previous update
45
39
-`Test Readwise API key`: Ensure the Access Token works
46
40
-`Delete Readwise library`: Remove the Readwise library file folder from vault
47
41
-`Download entire Readwise library (force)`: Forces a full download of all content from Readwise
42
+
-`Adjust Filenames to current settings`: CLean up filenames of existing files in your Readwise library folder based on current filename settings (whitespace removal and slugify only for the time being)
43
+
44
+
## Settings
45
+
46
+
### General
47
+
48
+
#### Authentication
49
+
50
+
The plugin provides OAuth-based authentication with Readwise. After installing, visit the plugin settings and use the "Authenticate with Readwise" button to set up the connection.
51
+
52
+
#### Library Settings
53
+
54
+
-**Library folder name**: Where to store the Readwise library (defaults to `Readwise`)
55
+
-**Auto sync when starting**: Automatically sync new highlights when Obsidian opens
56
+
57
+
#### Sync Logging
58
+
59
+
-**Sync log**: Enable writing sync results to a file
60
+
-**Log filename**: Name of the log file (defaults to `Sync.md`)
61
+
62
+
### Organization
63
+
64
+
#### Author Names
65
+
66
+
These settings control how author names are processed. If enabled, titles (Dr., Prof., Mr., Mrs., Ms., Miss, Sir, Lady) will be stripped from author names. This is useful for cases where you don't want to change the author names in Readwise (e.g. to avoid duplicate highlights).
67
+
68
+
For example, given the author string: "Dr. John Doe, and JANE SMITH, Prof. Bob Johnson"
69
+
70
+
The different settings will produce:
71
+
72
+
-**Default**: "Dr. John Doe, JANE SMITH, Prof. Bob Johnson"
73
+
-**Normalize case**: "Dr. John Doe, Jane Smith, Prof. Bob Johnson"
74
+
-**Strip titles**: "John Doe, JANE SMITH, Bob Johnson"
75
+
-**Both enabled**: "John Doe, Jane Smith, Bob Johnson"
76
+
77
+
The plugin will split the authors returned by Readwise into an array which can be used in Frontmatter and other templates.
78
+
79
+
#### Highlights Organization
80
+
81
+
-**Sort highlights from oldest to newest**: Control highlight ordering
82
+
-**Sort highlights by location**: Use document location for ordering
After installing, visit the plugin configuration page to enter the Readwise Access Token, which can be found here: [https://readwise.io/access_token](https://readwise.io/access_token)
103
+
104
+
Then run any of the commands or click the Readwise toolbar to sync for the first time.
48
105
49
106
## How does this work?
50
107
@@ -128,7 +185,7 @@ The plugin provides an option to "slugify" filenames. This means converting the
128
185
129
186
To enable slugifying filenames, go to the plugin settings and toggle the "Slugify Filenames" option. Please note that this is a major change. You will end up with duplicate files unless you delete and sync the entire library.
130
187
131
-
## Templates
188
+
## Templating
132
189
133
190
The plugin uses three template types to format content, all using Nunjucks templating syntax:
134
191
@@ -541,4 +598,6 @@ If you are upgrading from 1.x.x to 2.x.x, and want to preserve your existing lin
541
598
542
599
Your subsequent syncs will then use the `uri` property to track unique files and ensure links to items in your Readwise library will be updated, even if the generated filenames change with the new version of the plugin.
543
600
601
+
As an additional measure, you can also use the `Adjust Filenames to current settings` command. This will iteratively go through all files in your Readwise library only and will rename the files according to the general settings (incl. slugify), and will also remove things like multiple or trailing spaces in filenames. Links from other Notes to renamed files will be updated.
602
+
544
603
[^1]: You might want to ensure that properties like `author` are omitted from the template as these have a tendency to break frontmatter. Alternatively, you can use the `authorStr` variable, or run a plugin like "Linter" to check and fix all your Readwise notes before upgrading.
0 commit comments