Sublime Forum

CLI tool opening desired directory.. AND empty windows

#1

I go to one of my project directories and hit

subl .

My project opens correctly but it also comes with a few sometimes one / two extra windows with empty files…

Obviously my goal is to open a single window…

My current config…

[code]{
// The theme controls the look at Sublime Text’s UI (buttons, tabs, scroll bars, etc)
“theme”: “Default.sublime-theme”,

// Exiting the application with hot_exit enabled will cause it to close
// immediately without prompting. Unsaved modifications and open files will
// be preserved and restored when next starting.
//
// Closing a window with an associated project will also close the window
// without prompting, preserving unsaved changes in the workspace file
// alongside the project.
"hot_exit": false,

// remember_open_files makes the application start up with the last set of
// open files. Changing this to false will have no effect if hot_exit is
// true
"remember_open_files": false,

// folder_exclude_patterns and file_exclude_patterns control which files
// are listed in folders on the side bar. These can also be set on a per-
// project basis.
"folder_exclude_patterns": ".svn", ".git", ".hg", "CVS"],
"file_exclude_patterns": "*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"],
// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
"binary_file_patterns": "*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

// Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to
// scroll slower, or set to larger than 1 to scroll faster
"scroll_speed": 1.0,

"show_tab_close_buttons": true,

// Places a highlight on tabs with unsaved changes
"highlight_modified_tabs": true,

// OS X only: When files are opened from finder, or by dragging onto the
// dock icon, this controls if a new window is created or not.
"open_files_in_new_window": false,

// Set to true to close windows as soon as the last file is closed, unless
// there's a folder open within the window. This is always enabled on OS X,
// changing it here won't modify the behavior.
"close_windows_when_empty": true,

// OS X 10.7 only: Set to true to disable Lion style full screen support.
// Sublime Text must be restarted for this to take effect.
"use_simple_full_screen": false,

// Valid values are "system", "enabled" and "disabled"
"overlay_scroll_bars": "enabled",

// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
"ignored_packages": "Vintage"]

}
[/code]

0 Likes

#2

bump?

0 Likes

#3

This is fixed in the current dev build

0 Likes

#4

Awesome, thanks so much!

0 Likes