Sublime Forum

Default height and width, linked post says it's possible?!

#1

Hi,

The post linked below begins:* “I really appreciate the fact that there’s a way to set the default height and width for new windows in ST2…”*

sublimetext.userecho.com/topic/1 … -position/

For the life of me I can’t find how to do this and my searches only come up with the many feature requests to add new window sizing functionality to ST.

Is the post which says it can be done correct? If so how is it done?

A key solution to set current window height and width would be fine.

Thanks.

P.S.

I use ST3 for two purposes. As my programming project editor and as a plain text editor for text files, config files, even emails sometimes.

As my programming project editor I want a BIG window with all my usual settings - I’ve got that.

But I also have a launcher which starts “subl --new-window” which I use to start ST as a plain text editor as and when I need it but I have to resize the window every time from the BIG window I like for programming. Also I don’t want rulers on, or the minimap displayed, or the sidebar showing.

Using subl I’d like to be able to set: ‘–window-dimensions=WxH’, ‘ruler=off’, ‘minimap=off’, ‘sidebar=off’, ‘remembered-files=off’, or maybe just ‘–AnySetting=Whatever’.

Purhaps a better approach would be the ability to assign a custom ‘Preferences.sublime-settings’ file. e.g. ‘subl --new-window --Preferences=TextEditorPreferences.sublime-settings’

0 Likes

#2

I contacted the poster…

Unfortunately he’s wrong. He was talking about the settings of new_window_height and new_window_width in the Session.sublime_session file. These do not set the default ST window dimensions. ST uses it to store the current ST window’s dimensions and then uses those dimensions to open any new ST windows to the same size as the current ST window.

Oh well…

0 Likes

#3

Is there a way to get the current window’s width within sublime?

0 Likes