Skip to content

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 28 Jun 16:54
· 243 commits to master since this release

flyline v1.2.1 introduces major performance improvements, code quality refactoring, installer robustness, and vastly expanded target architecture/platform support.


πŸš€ Key Features & Enhancements

⚑ Tab Completion & Suggestion Latency

  • Reduced Flashing: Introduced placeholders in the tab completion window to minimize visual flashing/flickering during redraws.
  • Latency Optimizations: Improved rendering and filtering latency when dealing with very large lists of completions.

πŸ–±οΈ Declarative Mouse Event Refactoring

  • Re-architected mouse event processing (on_mouse) out of a monolithic function into a declarative, context-aware action routing system in src/app/actions/mouse.rs. This mirrors the modular structure used for keyboard actions, simplifying debugging and feature additions.

πŸ”— Pure Chained Auto-Completion Pipeline

  • Consolidated the auto-suggest state machine in src/app/mod.rs into a single, clean .or_else() chain.
  • Statically enforced read-only evaluation by typing the decision closure with an immutable reference (app: &Self), shifting all mutations (like clearing user-dismissed states) safely to the execution phase.
  • Integrated special carry-over rules (e.g. carrying over matches if typing - or .) and drag protections (preventing UI updates while dragging text or selecting elements).

🌐 Expanded Platform & Architecture Support

We have added target compilation configurations inside the GitHub Actions release workflow for the following architectures and platforms:

  • FreeBSD: x86_64-unknown-freebsd
  • ARMv7 Linux: armv7-unknown-linux-gnueabihf (Raspberry Pi 32-bit)
  • 32-Bit x86 Linux: i686-unknown-linux-gnu
  • RISC-V 64 Linux: riscv64gc-unknown-linux-gnu
  • PowerPC 64 LE Linux: powerpc64le-unknown-linux-gnu

πŸ›‘οΈ Rate-Limit Immune Offline Installer

  • Rebuilt the installation script install.sh to completely avoid querying the rate-limited GitHub REST API (api.github.com).
  • Uses HTTP redirect location header parsing (supported via curl or wget) to resolve the latest version tag, constructing the asset download URLs deterministically. This resolves all HTTP 403 Forbidden failures in high-traffic testing and CI/CD pipelines.

πŸ“‹ OSC 52 Clipboard Paste Integration

  • Replaced raw stdout writing of the OSC 52 query sequence (\x1b]52;c;?\x07) with crossterm's command wrapper RequestClipboardContents in the paste handler, matching standard crossterm design patterns.

πŸ› οΈ Bug Fixes & Dependency Upgrades

  • Upgraded dependencies: Updated the ctor crate to 1.0.7 and crossterm to the latest revision.
  • Pre-bash 4.4 Compatibility: Adjusted the pre-bash-4.4 shared-library constructor in src/lib.rs to use #[ctor(unsafe)] to satisfy compiler safety checks introduced in newer ctor releases.
  • Environment Variable Styling: Added recognized and unrecognized environment variable highlighting in the formatted buffer.
  • Prompt Rendering: Fixed the prompt filling logic when PS1 is empty.