Skip to main content

Crate wedi_widget

Crate wedi_widget 

Source
Expand description

wedi-widget - 可嵌入的編輯器 Widget

提供可在其他 TUI 應用程式中嵌入的編輯器元件。

§主要類型

§使用範例

use wedi_widget::{EditorConfig, ScreenLayout};

let config = EditorConfig::new()
    .with_line_numbers(true)
    .with_tab_width(4);

let layout = ScreenLayout::new(24, 80);

Re-exports§

pub use config::EditorConfig;
pub use layout::ScreenLayout;

Modules§

config
layout

Structs§

Cursor
Keymap
可自訂的快捷鍵對映
LineLayout
行佈局資訊(從 wedi-core::view 重新匯出)
RopeBuffer
Search
Selection
Terminal
View

Enums§

Command
Direction