know which parenthesis isn't closed #15
Labels
No labels
Do
Ideas
blocked / paused
bug
code improvement
critical
documentation
duplicate
feature
in progress
low
need
normal
research
spec change
ui
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lisp/lyk#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Reader needs to track open/close parentheses in a stack of locations:
each open parenthesis pushes a location to the stack, each closed one pops one off the stack. The remaining locations on the stack are thoses of parentheses not yet closed.
I could use the size of that stack to set the prompt of the ConsoleReader to "(((> ", showing the number of still open parentheses. Nifty! (This is already done. But I am not quite sure if I want to keep that, as it is a bit distracting.)
The prompt change works, but knowing which parentheses aren't closed doesn't. Postponed for now.
changed the description
changed the description