mirror of
https://github.com/annimon/obsidian-timelive.git
synced 2026-07-22 05:45:09 +00:00
Improve readme, add settings section
This commit is contained in:
parent
5cac859395
commit
0f6d802b07
1 changed files with 45 additions and 4 deletions
49
README.md
49
README.md
|
|
@ -2,16 +2,22 @@
|
|||
|
||||
Plugin for [Obsidian](https://obsidian.md) that turns a list of dates into a timeline.
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
The key difference from other timeline plugins is that Timelive doesn't use a code block. It's much easier to format any date event, provide a link or block of code, add an image or a video, etc.
|
||||
|
||||
To build a timeline, you need to define a list of dates, enclosed by the `|` symbol. The date format is automatically detected, but in case of ambiguity, the preferred format can be selected in the preferences. You can also generate a placeholder with the **Timelive: New block** action (accessible from <kbd>Ctrl+P</kbd> Command Palette).
|
||||
To build a timeline, you need to define a list of dates, enclosed by the `|` symbol. The date format is automatically detected, but in case of ambiguity, the preferred format can be selected in the [preferences](#settings). You can also generate a placeholder with the **Timelive: New block** action (accessible from <kbd>Ctrl+P</kbd> Command Palette).
|
||||
|
||||
There is also support for time spans. Just define two dates separated by ` - ` and they will be turned into a span.
|
||||
|
||||
The timeline will be rendered in Reading view, or in Live Editing mode in case you embed a note with a timeline.
|
||||
|
||||
Use `now`, `today` or `present` to indicate that the project is live and that today's marker should be added.
|
||||
|
||||
## Examples
|
||||
|
||||
````
|
||||
## Demo
|
||||
- |2011-02-05| Start
|
||||
|
|
@ -36,8 +42,43 @@ The timeline will be rendered in Reading view, or in Live Editing mode in case y
|
|||
- |2056-05-24| Some future event
|
||||
````
|
||||
|
||||
Use `now`, `today` or `present` to indicate that the project is live and that today's marker should be added.
|
||||
|
||||

|
||||

|
||||
|
||||
See [info.md](info.md) for a real use case.
|
||||
|
||||
## Settings
|
||||
|
||||
### Preview title date format
|
||||
|
||||
Date format for titles in the date preview popup. See [Date format reference](https://momentjs.com/docs/#/displaying/format/).
|
||||
|
||||
**Examples:**
|
||||
|
||||
| Value | Default? | Result |
|
||||
| ------------ |:--------:| ------ |
|
||||
| `YYYY-MM-DD` | ✅ |  |
|
||||
| `MM/DD/YYYY` | |  |
|
||||
| `MMMM DD, YYYY` | |  |
|
||||
| `DD MMM YYYY` | |  |
|
||||
| `ddd, DD MMM YYYY` | |  |
|
||||
|
||||
### Calendar month format
|
||||
|
||||
Calendar row format for years and months only. See [Date format reference](https://momentjs.com/docs/#/displaying/format/).
|
||||
|
||||
**Examples:**
|
||||
|
||||
| Value | Default? | Result |
|
||||
| ----- |:--------:| ------ |
|
||||
| `YYYY-MM` | ✅ |  |
|
||||
| `YYYY/MM` | |  |
|
||||
| `MMM YY` | |  |
|
||||
| `MMM YYYY` | |  |
|
||||
|
||||
### Parse date format
|
||||
|
||||
| Value | Default? | Matches |
|
||||
| ----- |:--------:| ------ |
|
||||
| `Years Months Days` | ✅ | 2008-02-09, 2008/02/09, 08/2/9, 2008/02-09, 8 2 9 |
|
||||
| `Days Months Years` | | 09-02-2008, 09/02/2008, 9/2/08, 09-02/2008, 9 2 8 |
|
||||
| `Months Days Years` | | 02-09-2008, 02/09/2008, 2/9/08, 02-09/2008, 2 9 8 |
|
||||
|
|
|
|||
Loading…
Reference in a new issue