Skip to content

Commit 3865867

Browse files
committed
docs: 📝 update and reorganized documentation
add documentation for "Adjust Filenames to current settings" command and reorganize documentation slightly to reflect the organization of the Settings Tabs
1 parent 5057710 commit 3865867

File tree

1 file changed

+66
-7
lines changed

1 file changed

+66
-7
lines changed

README.md

+66-7
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,75 @@ The first time this plugin is ran, it will do a full sync downloading all conten
3333
- Protected frontmatter fields to maintain your custom note properties
3434
- URL-friendly filename conversion (slugification)
3535

36-
## Usage
37-
38-
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-
4236
## Commands
4337

4438
- `Sync new highlights`: Download all new highlights since previous update
4539
- `Test Readwise API key`: Ensure the Access Token works
4640
- `Delete Readwise library`: Remove the Readwise library file folder from vault
4741
- `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
83+
- **Filter discarded highlights**: Hide discarded highlights
84+
- **Sync highlights with notes only**: Only sync highlights that have notes
85+
86+
#### Filenames
87+
88+
- **Custom filename template**: Generate filenames using variables like `{{title}}`, `{{author}}`
89+
- **Colon replacement**: Character to replace colons in filenames
90+
- **Slugify filenames**: Create clean, URL-friendly filenames
91+
92+
### Templates
93+
94+
The plugin uses three template types to format content:
95+
96+
- **Frontmatter Template**: Controls YAML metadata
97+
- **Header Template**: Controls document structure
98+
- **Highlight Template**: Controls individual highlight formatting
99+
100+
## Usage
101+
102+
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.
48105

49106
## How does this work?
50107

@@ -128,7 +185,7 @@ The plugin provides an option to "slugify" filenames. This means converting the
128185

129186
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.
130187

131-
## Templates
188+
## Templating
132189

133190
The plugin uses three template types to format content, all using Nunjucks templating syntax:
134191

@@ -541,4 +598,6 @@ If you are upgrading from 1.x.x to 2.x.x, and want to preserve your existing lin
541598
542599
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.
543600

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+
544603
[^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

Comments
 (0)