Sublime Forum

What is "region_key" for "mark" in "set mark"

#1

Hello. I want to know what is the “region_key” for “mark”.

image

I can get the “region_key” for “bookmarks” as follows.

bk_regions = view.get_regions("bookmarks")

The reason is I want to track where my mark is.

  • mark a location
  • select the surrounding text
  • replace the mark location with _completion_in_here_, copy the text
  • throw that text into GPT, get the completions.
0 Likes

#2

It is "mark".

0 Likes

#3

Thank you~

0 Likes