Implemented completion for variable names

Fixed 'w' and 'b' motions in vi mode stopping on underscores
This commit is contained in:
2026-02-19 10:13:04 -05:00
parent 9ec4ba85ea
commit c8fe7b7978
3 changed files with 188 additions and 58 deletions

View File

@@ -53,7 +53,7 @@ impl From<&str> for CharClass {
return CharClass::Alphanum;
}
if value.chars().all(char::is_alphanumeric) {
if value.chars().all(|c| c.is_alphanumeric() || c == '_') {
CharClass::Alphanum
} else if value.chars().all(char::is_whitespace) {
CharClass::Whitespace