mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Support referencing documents via UUID
This support is to allow using ‘mate’ to change caret/selection for open untitled documents.
This commit is contained in:
@@ -12,6 +12,7 @@ OAK_DEBUG_VAR(RMateServer);
|
||||
/*
|
||||
open
|
||||
path: [«path»|-]
|
||||
uuid: «uuid»
|
||||
real-path: «path»
|
||||
token: «string»
|
||||
display-name: «string»
|
||||
@@ -524,6 +525,11 @@ struct socket_observer_t
|
||||
}
|
||||
doc = document::create(args["path"]);
|
||||
}
|
||||
else if(args.find("uuid") != args.end())
|
||||
{
|
||||
if(!(doc = document::find(args["uuid"])))
|
||||
continue;
|
||||
}
|
||||
else if(args.find("data") != args.end())
|
||||
{
|
||||
if(writeBackOnSave || writeBackOnClose)
|
||||
|
||||
Reference in New Issue
Block a user