buffer::update
Addition and Deletion to the buffer.
{
"method": "buffer::update",
"path": <string>,
"add_or_delete": <string>,
"beg": <number>,
"end": <number>,
"contents": <string>,
}
pathif the modified filename.add_or_deleteis a string boolean; it’s either"add"or"delete".begis the beginning point of modification.endis the end point of modification.contentsis the string added to the buffer (not the file contents).
Example response
{
"method": "buffer::update",
"username": "{username}",
"file": <string>,
"add_or_delete": <string>,
"beg": <number>,
"end": <number>,
"contents": <string>,
"status": "success",
}
The client will navigate to the file and modify the existing buffer in the view.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.