skim v0.9.0 Release Notes

Release Date: 2020-10-18 // over 3 years ago
  • ๐Ÿ’ฅ Breaking Change to the Library:

    • SkimItem::display now accepts a DisplayContext that provide more information such as container width, score, matches, etc.
    • SkimItem::preview now accepts a PreviewContext that provide more information such as query, width, selections, etc.
    • Skim::run_as now returns Some on both Accept and Abort, so that user could collect and react on abort events.
    • SkimOutput now provides the final key received before return.

    ๐Ÿ”‹ Features:

    • โฌ‡๏ธ Reduce memory usage
    • Defer drops of items, to improve interaction speed
    • ๐Ÿ‘Œ support --tac and --nosort
    • ๐Ÿ†• new action: half-page-up and half-page-down
    • ๐Ÿ‘Œ support tiebreak by length
    • #344 expose preview context in preview() function
    • ๐Ÿ‘ #341 support multiline header
    • ๐Ÿ‘‰ use unicode spinner
    • ๐Ÿ‘ #324 support option --no-clear to keep the content drawn on screen
    • ๐Ÿšš #300 library: move reader options to default reader
    • ๐Ÿ‘Œ support new option --keep-right to show the right most text if it is too long.
    • ๐Ÿ‘Œ support negative horizontal scroll
    • ๐Ÿ‘Œ support --skip-to-pattern to start item display with the pattern matched
    • ๐Ÿ‘Œ support --select-1 that automatically select the only match
    • ๐Ÿ‘Œ support --exit-0 that exit automatically if no item matched
    • ๐Ÿ‘Œ support --sync that waits for all inputs to be ready and then starts the selection UI
    • ๐Ÿ‘ #309 support pre-selection
      • pre-select-n: select first n items
      • pre-select-pat: select items that matches regex
      • pre-select-items: select items from a preset
      • pre-select-file: select items from a preset that's loaded from file
    • ๐Ÿ‘ #328 support --no-clear-if-empty that preserve selection if the new command query returns nothing. Was designed to reduce flicking.

    ๐Ÿ›  Fixes:

    • โšก๏ธ #326 preview not updated anymore
    • #349 kill-line and discard-line in interactive mode
    • #344 implement text() and display() correctly
    • #312 mouse click and page up/down out of bound
    • Do not auto-scroll for customized items
    • #321 fix annoyance through ZSH's REPORTTIME