pub struct Editor {Show 19 fields
pub current_directory: PathBuf,
pub config: Config,
pub theme: Theme,
pub syntaxes: SyntaxCollection,
pub keymaps: KeyMapCollection,
pub mode: Mode,
pub buffers: BufferCollection,
pub buffer_views: BufferViewCollection,
pub word_database: WordDatabase,
pub buffered_keys: BufferedKeys,
pub recording_macro: Option<RegisterKey>,
pub registers: RegisterCollection,
pub read_line: ReadLine,
pub picker: Picker,
pub string_pool: StringPool,
pub status_bar: StatusBar,
pub aux_pattern: Pattern,
pub commands: CommandManager,
pub events: EditorEventQueue,
}
Fields
current_directory: PathBuf
config: Config
theme: Theme
syntaxes: SyntaxCollection
keymaps: KeyMapCollection
mode: Mode
buffers: BufferCollection
buffer_views: BufferViewCollection
word_database: WordDatabase
buffered_keys: BufferedKeys
recording_macro: Option<RegisterKey>
registers: RegisterCollection
read_line: ReadLine
picker: Picker
string_pool: StringPool
status_bar: StatusBar
aux_pattern: Pattern
commands: CommandManager
events: EditorEventQueue
Implementations
sourceimpl Editor
impl Editor
pub fn new(current_directory: PathBuf) -> Self
pub fn buffer_view_handle_from_path(
&mut self,
client_handle: ClientHandle,
path: &Path,
properties: BufferProperties,
create_if_not_found: bool
) -> Result<BufferViewHandle, BufferReadError>
pub fn enter_mode(&mut self, next: ModeKind)
pub fn enter_plugin_mode(&mut self, plugin_handle: PluginHandle)
pub fn execute_keys(
ctx: &mut EditorContext,
client_handle: ClientHandle,
keys: KeysIterator
) -> EditorFlow
Auto Trait Implementations
impl RefUnwindSafe for Editor
impl Send for Editor
impl Sync for Editor
impl Unpin for Editor
impl UnwindSafe for Editor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more