Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Creling/obsidian-activity-logger
https://github.com/Creling/obsidian-activity-logger
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/Creling/obsidian-activity-logger
- Owner: Creling
- License: mit
- Created: 2021-08-04T07:18:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T14:20:42.000Z (over 3 years ago)
- Last Synced: 2024-08-13T07:17:48.193Z (4 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 19
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Creling/obsidian-activity-logger - (TypeScript)
README
# Activity Logger
Log your activities like creating notes, modifying notes, deleting notes and so on.
## Features
- Idempotency, which means that you can exec the command multiply times and it will not insert duplicate logs but update existing logs.
- Template support, which means that you can define your own output.
## Get Started
### Settings
**Start Line**: A special make or sentence after which logs will be insert. Do **NOT** left it empty.
**End Line**: A special mark or sentence before which logs will be insert. Do **NOT** left it empty.
If there are existing `Start Line` & `End Line` in current notes. the plugin will insert logs between them, or it will insert `Start Line`, logs and `End Line` after the cursor.
**Template**: A snippet with three special variables (`$createdFiles`, `$deletedFiles` & `$modifiedFiles`).
Any characters in the same line with these three variables and the variables themselves compose a Placeholder. When inserting logs, the variables will be replaced with file paths and additional characters will reserved. That's to say, `- $createdFiles` will get a unordered list of files which are created today. and `- [[$createdFiles]]` will get a similar list but all items are Obsidian internal links.
### Tricks
`Start Line` and `End Line` are somewhat ugly, but we can incorporate them within our Obsidian Templates. Suppose we have a Template like this:
```markdown
# YYYY-MM-DD
## Daily Activities
……………………
## Daily Plans
……………………
```
We can set `Start Line` as `## Daily Activities` and `End Line` as `## Daily Plans`. Then logs will be insert between these two headings, no ugly marks at all!.