GetWordBeforeCursorUntilSeparator returns the text before the cursor until next separator.
(sep string)
| 101 | |
| 102 | // GetWordBeforeCursorUntilSeparator returns the text before the cursor until next separator. |
| 103 | func (d *Document) GetWordBeforeCursorUntilSeparator(sep string) string { |
| 104 | x := d.TextBeforeCursor() |
| 105 | return x[d.FindStartOfPreviousWordUntilSeparator(sep):] |
| 106 | } |
| 107 | |
| 108 | // GetWordAfterCursorUntilSeparator returns the text after the cursor until next separator. |
| 109 | func (d *Document) GetWordAfterCursorUntilSeparator(sep string) string { |