Sublime Forum

Side-by-side view from command-line (Mac)

#1

Is there any way to open two files side-by-side from the command line in Sublime Text 3 without any extra plugins?
Thanks.

2 Likes

#2

bump cause

thanks !

0 Likes

#3

No, it’s not possible.

ST can basically run python commands via command line like --command "the_command", which could be used to run a plugin command to adjust layout and assign files, but this is not what you want and they most likely fail as they are called by the core before all plugins are loaded. So this argument is useless with ST3.

0 Likes

#4

ok, good to know anyway, probably prevents some wasted time

0 Likes

#5

yes

subl -n file1 && subl --command "set_layout {\"cells\": [[0, 0, 1, 1], [1, 0, 2, 1]], \"cols\": [0.0, 0.5, 1.0], \"rows\": [0.0, 1.0]}" && subl --command "focus_group {\"group\": 1}" && subl file2
5 Likes