Skip to content

v0.2.0

Compare
Choose a tag to compare
@rhysd rhysd released this 18 Oct 10:57
· 220 commits to main since this release
  • Add Scrolling enum to provide more flexible scrolling via TextArea::scroll method. It has the following enum variants.
    • BREAKING Scrolling::Delta scrolls the textarea by given rows and cols. This variant can be converted from (i16, i16) so migrating from v0.1.6 is very easy.
      let rows: i16 = ...;
      let cols: i16 = ...;
      
      // Until v0.1.6
      textarea.scroll(rows, cols);
      
      // Since v0.2.0
      textarea.scroll((rows, cols));
    • Scrolling::PageDown and Scrolling::PageUp scroll the textarea by page.
    • Scrolling::HalfPageDown and Scrolling::HalfPageUp scroll the textarea by half-page.
  • Update default key mappings handled by TextArea::input method.
    • BREAKING Change PageDown and PageUp keys to scroll down/up the textarea by page since v0.2.0. Until v0.1.6, it moved the cursor down/up by one paragraph.
    • Add Ctrl+V and Alt+V keys to scroll down/up the textarea by page as Emacs-like key mappings.
    • Add Alt+] and Alt+[ keys to move the cursor down/up by one paragraph as Emacs-like key mappings.
  • BREAKING Add #[non_exhaustive] attribute to CursorMove enum. This is because more cursor move variations may be added in the future.
  • Fix panic when the max history size is zero (which means the edit history is disabled). (#4)