# Is it possible to extract the LocalHistory of a File/Project programatically?

**URL:** <https://platform.jetbrains.com/t/is-it-possible-to-extract-the-localhistory-of-a-file-project-programatically/1167>\
**Category:** IntelliJ Platform\
**Created:** [March 31, 2025, 4:06pm UTC](https://platform.jetbrains.com/t/is-it-possible-to-extract-the-localhistory-of-a-file-project-programatically/1167 "2025-03-31T16:06:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skrumpey](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/skrumpey/32/1024_2.png) [@Skrumpey](https://platform.jetbrains.com/u/Skrumpey)\
**Post date:** [March 31, 2025, 4:06pm UTC](https://platform.jetbrains.com/t/is-it-possible-to-extract-the-localhistory-of-a-file-project-programatically/1167/1 "2025-03-31T16:06:39Z")

</div>

Hello!

I’m trying to create a plugin that lets a user extract/export the current Local History state of their file/project into some textfile, but I haven’t really figured out a way to do this so far.

It’s my first time working on an IntelliJ-plugin, I’m using the template from ([GitHub - JetBrains/intellij-platform-plugin-template: Template repository for creating plugins for IntelliJ Platform](https://github.com/JetBrains/intellij-platform-plugin-template)).

I went through code of the community version and i see a few classes like LocalHistoryImpl and others that might be of use, but I also only have access to LocalHistory itself, which doesnt really offer a lot of functionality (none to export), so this is another issue im currently facing.

TLDR:

- Is it possible to extract the Local History programatically?
- How do I properly get access to the internal Implementation Classes?

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![insyncwithfoo](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/insyncwithfoo/32/158_2.png) [@insyncwithfoo](https://platform.jetbrains.com/u/insyncwithfoo)\
**Post date:** [March 31, 2025, 4:55pm UTC](https://platform.jetbrains.com/t/is-it-possible-to-extract-the-localhistory-of-a-file-project-programatically/1167/2 "2025-03-31T16:55:35Z")

</div>

There is [a recent question](https://platform.jetbrains.com/t/651) on the same topic. Does it help?

---

<div class="post-metadata">

**Author:** ![Skrumpey](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/skrumpey/32/1024_2.png) [@Skrumpey](https://platform.jetbrains.com/u/Skrumpey)\
**Post date:** [March 31, 2025, 5:13pm UTC](https://platform.jetbrains.com/t/is-it-possible-to-extract-the-localhistory-of-a-file-project-programatically/1167/3 "2025-03-31T17:13:17Z")

</div>

Kind of, tho I’m stuck at the same question that OP was stuck on on their post where com.intellij.history.core and com.intellij.history.integration don’t exist when using the IntelliJ template from github.
