You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text_before_cursor is the whole text before the cursor, from the very first character until the cursor position.
get_word_before_cursor returns the word before the cursor. Typically the part that would be removed by a Control-W key press in Vi mode (it's not exactly Meta+backspace in Emacs mode). if WORD=True is given, this will take any whitespace as a separator. A different regex pattern can be given in the latest release, if you want a different separator.
hi.
Thank you for a wonderful library!
Is there a difference between document.text_before_cursor and document.get_word_before_cursor()?
The difference is "contain" or "not contain" the leading space?
If there is a difference, I would like if there is an example
Thank you
The text was updated successfully, but these errors were encountered: