Overview of Readline
masterReadline is a modern, pure Go implementation of a readline shell. It provides full .inputrc support and legacy readline command/option compatibility, while extending functionality with modern shell features. Its architecture and completion system are heavily inspired by Z-Shell (Zsh).
Key capabilities include:
- Cross-platform support: Works on Linux, MacOS, and Windows.
- Editing Modes: Native Emacs commands and near-native Vim mode (including text objects, registers, and macro recording).
- Advanced Completion: Keymap-based, configurable completion system with fuzzy search, incremental search, and automatic suffix removal.
- Prompt Support: Supports PS1, PS2, RPROMPT, transient, and tooltip prompts (compatible with
oh-my-posh). - Extensibility: Programmable API for custom commands and support for an arbitrary number of history sources.