Sublime Forum

Multiple files, 1 window, displayed consecutively?

#1

Hey Guys,

Is there a way to configure ST (or if there’s a package available) to consecutively display multiple files within a single window?

Currently, I have a large number of files that I need to quickly review and reference multiple times. with Sublime and it may very well be a time-saver for me if I could simply display all of the files, consecutively within one window.

Any thoughts or ideas?

Thanks for your time, guys. I appreciate it!

Jake

0 Likes

#2

Sublime Text itself can display up to 4 files per tab (View -> Layout). Would that help?

0 Likes

#3

the the origami plugin

0 Likes

#4

Not exactly sure what you’re asking for, but Sublime displays each file in a tab. If you need a way to view multiple files’ content consecutively in one tab, there are two ways to achieve it:

  1. A plugin that iterates through all open tabs and concats the content of each into a new tab. I’m not aware of the existence of such a plugin, but it should be fairly easy to write.

  2. Do the same thing yourself outside Sublime, then feed in the result. If you’re on Mac or Linux, it’s trivial to cat all the files and pipe the result into Sublime.

:smile:

0 Likes

#5

Exactly what I’m looking for!

[quote=“agates”]"there are two ways to achieve it:

  1. A plugin that iterates through all open tabs and concats the content of each into a new tab. I’m not aware of the existence of such a plugin, but it should be fairly easy to write.

  2. Do the same thing yourself outside Sublime, then feed in the result. If you’re on Mac or Linux, it’s trivial to cat all the files and pipe the result into Sublime". [/quote]

I plan on learning how to write plugins for ST after this semester’s over, but in the meantime (I’m somewhat embarrassed to admit this) I Iack the skills necessary to write an ST plugin. I don’t mind doing the work myself, and it would be a fun learning experience. In the meantime, however, If anyone is game for creating such a plugin, cool! Please let me know.

Thank you @tux and @ valerij_ for commenting as well. Valerij, unless I am missing something when using Origami, I’m not quite sure how to display files consecutively, within one tab (as described by Agates above).

Thanks everyone for your replies.

0 Likes