How can a plugin get the list of recent files?
I need to detect file creation, and maybe do some fixup, depending on the file that was created and where the user was when the file was created. `BulkFileListener` does what I need in terms of creation detection, but I can't seem to find how to get the list of edit positions.
I'm looking for something like the data behind Navigate / Back and Navigate / Forward. I'm sorry if this is a naive question - I've done a lot of Googling and code skimming, and can't find the answer.
Please sign in to leave a comment.
The navigation is handled by actions near com.intellij.ide.actions.BackAction. Internally, they use IdeDocumentHistory history service, which provides the information about last locations, edited or viewed.
Thank you!