Sublime Forum

Couple of API questions

#1

Hello. I have a few (short) questions about the ST API, if someone might spare a minute pl :wink:

  1. How does the ‘edit’ parameter for a TextCommand object differ from an Edit object I might create/begin? Is it just that it doesn’t require an ‘end_edit’?
  2. Does my Edit object exist in an internal buffer? In which case, is it possible to cancel my editing, without having to (somehow) undo it?
  3. Must Regions that I create always refer to an existing view or panel? That is, is it possible to create a ‘virtual’ Region?
  4. I know that sel() returns a RegionSet. How do I create, or refer to, a different RegionSet?

Here’s hoping, Andy.

0 Likes