Add 'Close Empty Windows' option.'

This commit is contained in:
Douwe Maan
2015-11-20 16:40:55 +01:00
parent f93565708b
commit a7809d6772
2 changed files with 7 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ module.exports =
followSymlinks:
type: 'boolean'
default: true
title: 'Follow symlinks'
description: 'Follow symbolic links when searching files and when opening files with the fuzzy finder.'
disabledPackages:
type: 'array'
@@ -54,7 +53,12 @@ module.exports =
destroyEmptyPanes:
type: 'boolean'
default: true
description: 'When the last item of a pane is removed, remove that pane as well.'
title: 'Remove Empty Panes'
description: 'When the last tab of a pane is closed, remove that pane as well.'
closeEmptyWindows:
type: 'boolean'
default: true
description: 'When a window with no open tabs or panes is given the \'Close Tab\' command, close that window.'
fileEncoding:
description: 'Default character set encoding to use when reading and writing files.'
type: 'string'

View File

@@ -682,7 +682,7 @@ class Workspace extends Model
@destroyActivePaneItem()
else if @getPanes().length > 1
@destroyActivePane()
else
else if @config.get('core.closeEmptyWindows')
atom.close()
# Increase the editor font size by 1px.