SeedPath returns the text after the last whitespace and path/filepath separator, which is typically used for creating a completion seed string.
(text string)
| 202 | // SeedPath returns the text after the last whitespace and path/filepath |
| 203 | // separator, which is typically used for creating a completion seed string. |
| 204 | func SeedPath(text string) string { |
| 205 | return SeedAfter(text, func(r rune) bool { |
| 206 | return unicode.IsSpace(r) || r == '/' || r == filepath.Separator |
| 207 | }) |
| 208 | } |
| 209 | |
| 210 | // SeedPath returns the text after the last rune for which the given |
| 211 | // function returns true, which is typically used for creating a completion |
no test coverage detected