add 'cmd-transpose-word' to swap words

This commit is contained in:
Gokcehan committed 2018-05-14 19:38:35 +03:00
1 parent 6e6cca33b8
commit de39594a46
5 files changed
+33 -2

No files matched your search

+1
View File
@@ -195,6 +195,7 @@ func naturalLess(s1, s2 string) bool {
return len(parts1) < len(parts2)
}
var reWord = regexp.MustCompile(`(\pL|\pN)+`)
var reWordBeg = regexp.MustCompile(`([^\pL\pN]|^)(\pL|\pN)`)
var reWordEnd = regexp.MustCompile(`(\pL|\pN)([^\pL\pN]|$)`)