-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ledger-navigate-beginning-of-xact does not recognize commented transactions #316
Comments
I think a sensible fix for this would be to have Current behavior:
The problem with this is you can destroy a transaction that's completely out of the context of where point is at. Not very intuitive for the user! If you're looking at a list of Proposed behavior: Have |
Currently, ledger-navigate-beginning-of-xact does not recognize commented transactions. However, the font styling rules will highlight a commented transaction. This leads to unexpected behavior; for example, invoking C-c C-d (ledger-delete-current-transaction) while the cursor is on a commented transaction will not delete the (commented) transaction that the cursor is on, but rather it will search up in the buffer to the first non-commented transaction and delete that one.
This is the regex used to find the beginning of a transaction:
I'm not sure if this is the best solution, but expanding it to allow one or more comment characters followed by any amount of whitespace might work?
The text was updated successfully, but these errors were encountered: