Skip to content
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

Feature Request: Facilitate account autocompletion when using multiple cursors AND there's text after the cursors on the same lines #86

Open
seltzered opened this issue Jul 28, 2023 · 0 comments

Comments

@seltzered
Copy link

seltzered commented Jul 28, 2023

EDIT: This feature actually already works, but currently only if there isn't any text afterward (e.g. no amount value after the account where the cursors are). I'm wondering if there's a way to facilitate it in these scenarios as well (see updated example)


I'm wondering if it's possible to trigger the account autocompletion pop-up specfically when one is trying to write an account (or more typically change the name) for several entries, i.e. when there's multiple cursors occurring to write in multiple lines, AND when there's possibly text afterward on the same lines, such as an amount.

An example flow would be as follows:

  1. User selects multiple cursors for several transactions (e.g. at the same point in a line where an account like Assets:TODO is written ), at the same relative column position (e.g. all at the end of the account name)
  2. User starts removing/typing a replacement account name, and is presented with the account autocompletion quazimodal dialog to select a suggested account, or hit Esc to exit the dialog, or continue typing to refine results.

For example, if there's several lines like

2023-05-01 * "DIRECT DEBIT PYMT" "debit"
  Assets:TODO           123.45 USD
  Assets:US:BankOfAmerica:Checking

[... other transactions...]

2023-06-01 * "DIRECT DEBIT PYMT" "debit"
  Assets:TODO          234.56 USD
  Assets:US:BankOfAmerica:Checking

[... other transactions...]

2023-07-01 * "DIRECT DEBIT PYMT" "debit"
  Assets:TODO          12.34 USD
  Assets:US:BankOfAmerica:Checking

and needs to replace Assets:TODO with Liabilities:US:ReallyLong:CreditCardName, instead of a user thinking of doing a direct ctrl+h replace and needing to type in the exact name, one should be able to work more interactively by doing a multiple cursor search (ctrl+f for Assets:TODO then alt+enter , if appropriate for such a scenario) to bring up multiple cursors and have the autocomplete pop-up to easily get the desired result of:

2023-05-01 * "DIRECT DEBIT PYMT" "debit"
  Liabilities:US:ReallyLong:CreditCardName          123.45 USD
  Assets:US:BankOfAmerica:Checking

[... other transactions...]

2023-06-01 * "DIRECT DEBIT PYMT" "debit"
  Liabilities:US:ReallyLong:CreditCardName          234.56 USD
  Assets:US:BankOfAmerica:Checking

[... other transactions...]

2023-07-01 * "DIRECT DEBIT PYMT" "debit"
  Liabilities:US:ReallyLong:CreditCardName      12.34 USD
  Assets:US:BankOfAmerica:Checking          
@seltzered seltzered changed the title Feature Request: Facilitate account autocompletion with multiple cursors Feature Request: Facilitate account autocompletion when using multiple cursors Jul 28, 2023
@seltzered seltzered changed the title Feature Request: Facilitate account autocompletion when using multiple cursors Feature Request: Facilitate account autocompletion when using multiple cursors AND there's text after the cursors on the same lines Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant