feat: add input abbreviations for heavy angle brackets ❰❱#782
Merged
Conversation
`h<` → ❰, `h>` → ❱, `h<>` → ❰$CURSOR❱, following the existing `f<`/`f>`/`f<>` pattern for French/single-arrow brackets `‹›`. The "h" prefix matches the Unicode names HEAVY LEFT/RIGHT- POINTING ANGLE BRACKET ORNAMENT (U+2770, U+2771). These characters are used by batteries' `proof_wanted` and `construction_wanted` commands (leanprover-community/batteries#1814) as a bracket syntax for referencing earlier wanted declarations. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds input abbreviations for
❰(U+2770, HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT) and❱(U+2771, HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT), following the existing pattern for French/single-arrow brackets (f<,f>,f<>for‹›):\h<→❰\h>→❱\h<>→❰$CURSOR❱The
hprefix matches the "HEAVY" in the Unicode names. The paired form lives next to the existing paired brackets at the top of the file; the singletons live next tof</f>further down.Motivation
Batteries'
proof_wantedandconstruction_wantedcommands (leanprover-community/batteries#1814 and stacked PRs) use❰foo❱as a bracket syntax for referencing earlier wanted declarations. Without an input abbreviation, users have to copy-paste the characters or set up their own — these PRs aren't really usable without a way to type the brackets.🤖 Prepared with Claude Code