-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Account name completion using matchfuzzy
This commit adds an alternative way for completing account names to the pre-existing completion function. Here's an example: ``` commodity 1,000.00 USD account Assets:Bank:Bofa:Checking account Assets:Bank:Bofa:Savings account Assets:Bank:Chase:Checking account Assets:Bank:Chase:Savings account Expenses:Coffee 2024-01-10 Buy Coffee Expenses:Coffee 5.00 USD bofa█ ,___________________________, | Assets:Bank:Bofa:Savings | | Assets:Bank:Bofa:Checking | '---------------------------' ``` The older completion mechanism would need several keypresses before it can insert the Bofa:Checking account especially in a big ledger with a lot of accounts. I have found this fuzzy approach to be faster in my workflow and expect that other people might find it helpful too.
- Loading branch information
Showing
3 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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