I’m learning CoffeeScript and how to make Atom packages at the same time. I’m trying to make a simple package that allows to navigate between cursor positions. For instance, I go to a definition of a symbol, scroll a little, move the cursor around and want to go back to the last place I browsed before.
Right now, I successfully keep cursor position history and navigate to past positions in the same file, but I can’t figure out how to go back to another opened file. I tried figuring it out first from documentation, then by searching through the packages on Github and finally by trial and error, but I’m not even sure what to search for… Editor? EditorView? Pane? Tab?..
Can someone point me to the right direction?