mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Show Package Contents work for packages with own data source
For example Xcode projects now have their target (URL) set to xcodeproject://path/to/project/file which would cause Show Package Contents to not work, as it expected a file URL.
This commit is contained in:
@@ -340,6 +340,12 @@ static NSURL* ParentForURL (NSURL* url)
|
||||
if([item.target isFileURL])
|
||||
return (void)[self showURL:item.target];
|
||||
}
|
||||
|
||||
for(FSItem* item in self.selectedItems)
|
||||
{
|
||||
if([item.target path] && path::is_directory([[item.target path] fileSystemRepresentation]))
|
||||
return (void)[self showURL:[NSURL fileURLWithPath:[item.target path]]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)showSelectedEntriesInFinder:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user