GetWordAfterCursorUntilSeparator returns the text after the cursor until next separator.
(sep string)
| 107 | |
| 108 | // GetWordAfterCursorUntilSeparator returns the text after the cursor until next separator. |
| 109 | func (d *Document) GetWordAfterCursorUntilSeparator(sep string) string { |
| 110 | x := d.TextAfterCursor() |
| 111 | return x[:d.FindEndOfCurrentWordUntilSeparator(sep)] |
| 112 | } |
| 113 | |
| 114 | // GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor returns the word before the cursor. |
| 115 | // Unlike GetWordBeforeCursor, it returns string containing space |