Wrapping up bedrock implementation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use galaxyui::text::TextBuffer;
|
||||
use itertools::Itertools;
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
|
||||
use crate::vim::{BracketChar, BracketEnd};
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
/// Returns the offset of the first newline above a paragraph start before the current position.
|
||||
pub fn find_previous_paragraph_start<'a, T, C>(buffer: &'a T, offset: C) -> Option<CharOffset>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
use std::ops::Range;
|
||||
|
||||
use galaxyui::text::TextBuffer;
|
||||
use itertools::Itertools;
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
|
||||
use crate::{
|
||||
vim::{BracketChar, BracketEnd, BracketType},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::ops::Range;
|
||||
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use crate::{find_next_paragraph_end, find_previous_paragraph_start};
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use std::ops::Range;
|
||||
|
||||
use galaxyui::text::TextBuffer;
|
||||
use itertools::Itertools;
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
|
||||
use crate::vim::QuoteType;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::ops::Range;
|
||||
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::TextBuffer;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use crate::{vim::WordType, word_iterator::CharacterKind};
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use std::iter::Peekable;
|
||||
|
||||
use anyhow::Result;
|
||||
use galaxyui::text::{words::is_default_word_boundary, TextBuffer};
|
||||
use itertools::{peek_nth, Either, PeekNth};
|
||||
use string_offset::CharOffset;
|
||||
use galaxyui::text::{words::is_default_word_boundary, TextBuffer};
|
||||
|
||||
use crate::vim::{Direction, WordBound, WordType};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user