mirror of
https://github.com/textmate/textmate.git
synced 2026-02-15 17:05:08 -05:00
Use current document when no URL given in txmt URL
Brings TM2 in line with the promises in http://manual.macromates.com/en/using_textmate_from_terminal.html Could probably be written nicer, I just don't get C++!
This commit is contained in:
committed by
Allan Odgaard
parent
aa234b723d
commit
2beac7080b
@@ -1160,6 +1160,11 @@ static std::string parent_or_home (std::string const& path)
|
||||
return [NSString stringWithCxxString:documentTabs.empty() ? NULL_STR : parent_or_home([self selectedDocument]->path())];
|
||||
}
|
||||
|
||||
- (NSString*)documentFilePath
|
||||
{
|
||||
return [NSString stringWithCxxString:documentTabs.empty() ? NULL_STR : [self selectedDocument]->path()];
|
||||
}
|
||||
|
||||
- (NSString*)projectPath
|
||||
{
|
||||
settings_t const& settings = documentTabs.empty() || [self selectedDocument]->path() == NULL_STR ? settings_for_path(NULL_STR, "", to_s(self.fileBrowserPath)) : [self selectedDocument]->settings();
|
||||
|
||||
Reference in New Issue
Block a user