# List of all events?

**URL:** <https://forum.obsidian.md/t/list-of-all-events/93218>\
**Category:** Devs: Plugins & API\
**Created:** [December 15, 2024, 11:25am UTC](https://forum.obsidian.md/t/list-of-all-events/93218 "2024-12-15T11:25:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eipe2955](https://forum.obsidian.md/user_avatar/forum.obsidian.md/eipe2955/32/25498_2.png) [@eipe2955](https://forum.obsidian.md/u/eipe2955)\
**Post date:** [December 15, 2024, 11:25am UTC](https://forum.obsidian.md/t/list-of-all-events/93218/1 "2024-12-15T11:25:43Z")

</div>

I’m dabbling with some plugin development, but I really find the documentation lacking. Or perhaps I’m just looking in the wrong place.

Is there a list of all events that you can somehow hook into? I found [this](https://docs.obsidian.md/Reference/TypeScript+API/Events/on) but it won’t help much. I can also search for ‘on’ in the [obsidian.d.ts file](https://github.com/obsidianmd/obsidian-api/blob/master/obsidian.d.ts) but that’s not very convenient.

As an example, can I hook into an navigation event? A file creation event? Can I hook in before these events and stop them or are they all “after the fact”? Grateful for any advice on where too find any useful resources for answering these kinds of questions.

---

<div class="post-metadata">

**Author:** ![Mutzu](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mutzu/32/59643_2.png) [@Mutzu](https://forum.obsidian.md/u/Mutzu)\
**Post date:** [December 18, 2024, 10:42am UTC](https://forum.obsidian.md/t/list-of-all-events/93218/2 "2024-12-18T10:42:41Z")

</div>

There are some events for the Workspace and Vault classes in the documentation.

> **[on('create') - Developer Documentation](https://docs.obsidian.md/Reference/TypeScript+API/Vault/on('create'))**
>
> Vault › on('create') Vault.on('create') method Called when a file is created. This is also called when the vault is first loaded for each existing file If you do not wish to receive create events on …

> **[on('active-leaf-change') - Developer Documentation](https://docs.obsidian.md/Reference/TypeScript+API/Workspace/on('active-leaf-change'))**
>
> Workspace › on('active-leaf-change') Workspace.on('active-leaf-change') method Triggered when the active leaf changes. Signature: on(name: 'active-leaf-change', callback: (leaf: WorkspaceLeaf | null)…

---

<div class="post-metadata">

**Author:** ![eipe2955](https://forum.obsidian.md/user_avatar/forum.obsidian.md/eipe2955/32/25498_2.png) [@eipe2955](https://forum.obsidian.md/u/eipe2955)\
**Post date:** [January 14, 2025, 5:55pm UTC](https://forum.obsidian.md/t/list-of-all-events/93218/3 "2025-01-14T17:55:49Z")

</div>

I found that I could go to [https://docs.obsidian.md](https://docs.obsidian.md) and in the search-box write `on('` and would give suggestions which is complete enough

---

<div class="post-metadata">

**Author:** ![mnaoumov](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnaoumov/32/22325_2.png) [@mnaoumov](https://forum.obsidian.md/u/mnaoumov)\
**Post date:** [January 14, 2025, 7:28pm UTC](https://forum.obsidian.md/t/list-of-all-events/93218/4 "2025-01-14T19:28:05Z")

</div>

No, it’s not complete. It just has events from public API.

If you search `on(name` [Obsidian Typings](https://fevol.github.io/obsidian-typings/) , you might find more from the internal API

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [February 11, 2025, 7:28pm UTC](https://forum.obsidian.md/t/list-of-all-events/93218/5 "2025-02-11T19:28:45Z")

</div>

Closed on February 11, 2025, 7:28pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
