In the Execute Selection/Line commands, send text to the terminal wrapped in bracketed paste escape sequences. This makes replxx treat the input as a whole rather than executing each line. This makes it possible to Ctrl+A Ctrl+Enter to evaluate the entire file, for example. It obviates the need to strip out comments in "Execute Selection".
Users can disable bqn.executableSupportsReplxx if their BQN is not built with replxx (meaning it won't understand bracketed paste escape sequences).
Highlights the pending backslash when entering a glyph. Uses editor.symbolHighlightBackground by default, but can be customized by bqn.pendingBackslashBackgroundColor.
Show information when you hover over BQN glyphs, or when you enter Ctrl+K Ctrl+I (a built in shortcut to show hover information at the cursor). It includes documentation from the BQN repository, keymap characters, and links to documentation on the BQN website. It can be disabled with bqn.enableHoverDocumentation.
The information is stored in src/help.json, which is automatically generated by gen_help.sh. This script reads Markdown files from the BQN repository and processes them using Pandoc with a Lua filter.
This is another stack of 5 changes.
1. Use bracketed paste mode
https://user-images.githubusercontent.com/316673/210156840-2ed3424b-dcd2-46c7-b137-74e5a4b8d79b.mov
bqn.executableSupportsReplxx
if their BQN is not built with replxx (meaning it won't understand bracketed paste escape sequences).2. "Clear Imports" and "Profile Script" commands
https://user-images.githubusercontent.com/316673/210156845-eb642726-2196-4a45-ac07-09c7966394ed.mov
3. Support multiple cursors
https://user-images.githubusercontent.com/316673/210156848-ce19f521-d077-4ae3-a859-f28c3a31d67f.mov
4. Highlight pending backslash
https://user-images.githubusercontent.com/316673/210156852-8b31f74c-553e-480d-843c-7a9476664c5a.mov
editor.symbolHighlightBackground
by default, but can be customized bybqn.pendingBackslashBackgroundColor
.5. Show documentation on hover
https://user-images.githubusercontent.com/316673/210156854-7c33e4da-1aee-4014-9675-cf23f857072f.mov
bqn.enableHoverDocumentation
.