API for getting text selection in script editor

API for getting text selection in script editor. This would of course be accessible to plugins only.

This would be most useful for making plugins that provide custom hotkeys.

One simple example of which are many:

  • You can just select any string and surround them with parentheses by pressing a hotkey.
5 Likes

1 Like