Creating and then loading a file stack/group


#1

I was looking for a feature in Atom that would save a path trace of files, and then be able to load that group of files into the buffer, and tab-navs, etc… Is there a packages or feature like this already?

I would like to do something like: be able to click a button/link at the top of the left side file browser and then load a previously saved group of files and be able to add / save new groups.

Thanks kindly,


#2

I don’t know of any package that does this without changing the project folder. If you can’t find one, you may need to write yourself in init.coffee or a package. It’s super-easy if you know anything about JavaScript. To save, just run atom.workspace.getTextEditors(), then create a file in your .atom/ directory and write the results of getPath() for each of those. To load, just read that file and run atom.workspace.open(). If you want to store multiple groups, of course, you’ll need to figure out the UI, but that’s the hardest part of this.