Sublime Forum

Not documented constants (like sublime.CLASS_WORD_START)

#1

Hi,

In the plugin example Packages/Default/delete_word.py there is some constants:

sublime.CLASS_WORD_START sublime.CLASS_PUNCTUATION_START sublime.CLASS_LINE_END sublime.CLASS_WORD_END sublime.CLASS_PUNCTUATION_END sublime.CLASS_LINE_START sublime.CLASS_SUB_WORD_END sublime.CLASS_SUB_WORD_START

The constants are not listed and documented in the API Reference:
sublimetext.com/docs/2/api_reference.html

After a Google search, I found nothing about them, except this delete_word.py page

They are not documented?
Or they are deprecated and will disappear in a near future?

There is other constants that we can use?

Thanks,
Jerome
:stuck_out_tongue:

0 Likes

#2

This constants are defined to used by the undocumented view.classify() method.
Do you really need them ? For what purpose ?

0 Likes

#3

Hi bizoo,

Well, I just start learning sublime plugin dev and I just discover them while browsing the sources.
So now I don’t really know if I need them :wink:
Did you know why thery are not documented? What they’re usefull?

How to obtain the list of all not documented constants / methods like view.classify() ?

Thanks!
J.
:stuck_out_tongue:

0 Likes

#4

help(sublime)

While it only shows a bunch of C++ signatures it’s still pretty handy

0 Likes

#5

cool tips, thanks !

0 Likes