implemented support for the 'sentence' text object in the line editor

This commit is contained in:
2025-06-12 04:52:51 -04:00
parent dbeeff579d
commit 23fb67aba8
3 changed files with 84 additions and 76 deletions

View File

@@ -941,6 +941,8 @@ impl ViNormal {
let obj = match chars_clone.next().unwrap() {
'w' => TextObj::Word(Word::Normal,bound),
'W' => TextObj::Word(Word::Big,bound),
's' => TextObj::WholeSentence(bound),
'p' => TextObj::WholeParagraph(bound),
'"' => TextObj::DoubleQuote(bound),
'\'' => TextObj::SingleQuote(bound),
'`' => TextObj::BacktickQuote(bound),
@@ -1602,6 +1604,8 @@ impl ViVisual {
let obj = match chars_clone.next().unwrap() {
'w' => TextObj::Word(Word::Normal,bound),
'W' => TextObj::Word(Word::Big,bound),
's' => TextObj::WholeSentence(bound),
'p' => TextObj::WholeParagraph(bound),
'"' => TextObj::DoubleQuote(bound),
'\'' => TextObj::SingleQuote(bound),
'`' => TextObj::BacktickQuote(bound),