mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Allow disabling document status in file browser
Disabling this is achieved by setting `fileBrowserDocumentStatus` to `false` in `.tm_properties`. Disabling it should remove potential delays after opening, closing, and saving files when file browser is showing a lot of files. It is meant as a temporary workaround until the performance issues are addressed.
This commit is contained in:
committed by
Allan Odgaard
parent
3ca80b9020
commit
dc34d5c9d9
@@ -203,6 +203,9 @@ static bool is_binary (std::string const& path)
|
||||
|
||||
- (void)setOpenURLs:(NSArray*)newOpenURLs
|
||||
{
|
||||
if(!settings_for_path(NULL_STR, "", [self.location UTF8String]).get(kSettingsFileBrowserDocumentStatusKey, true))
|
||||
return;
|
||||
|
||||
if([outlineViewDelegate.openURLs isEqualToArray:newOpenURLs])
|
||||
return;
|
||||
|
||||
@@ -217,6 +220,9 @@ static bool is_binary (std::string const& path)
|
||||
|
||||
- (void)setModifiedURLs:(NSArray*)newModifiedURLs
|
||||
{
|
||||
if(!settings_for_path(NULL_STR, "", [self.location UTF8String]).get(kSettingsFileBrowserDocumentStatusKey, true))
|
||||
return;
|
||||
|
||||
if([outlineViewDelegate.modifiedURLs isEqualToArray:newModifiedURLs])
|
||||
return;
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ std::string const kSettingsShowInvisiblesKey = "showInvisibles";
|
||||
|
||||
std::string const kSettingsProjectDirectoryKey = "projectDirectory";
|
||||
std::string const kSettingsSCMStatusKey = "scmStatus";
|
||||
std::string const kSettingsFileBrowserDocumentStatusKey = "fileBrowserDocumentStatus";
|
||||
std::string const kSettingsWindowTitleKey = "windowTitle";
|
||||
std::string const kSettingsScopeAttributesKey = "scopeAttributes";
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ PUBLIC extern std::string const kSettingsShowInvisiblesKey;
|
||||
|
||||
PUBLIC extern std::string const kSettingsProjectDirectoryKey;
|
||||
PUBLIC extern std::string const kSettingsSCMStatusKey;
|
||||
PUBLIC extern std::string const kSettingsFileBrowserDocumentStatusKey;
|
||||
PUBLIC extern std::string const kSettingsWindowTitleKey;
|
||||
PUBLIC extern std::string const kSettingsScopeAttributesKey;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user