-
Notifications
You must be signed in to change notification settings - Fork 289
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
Auto-completion in the "Narration" field in the Add popup #1535
Comments
This would indeed be a useful feature. A PR would be very welcome :) |
I don't have too much experience with JavaScript or its frameworks, but I dug a little into a code yesterday and got two ideas for now:
What do you think would be the best approach to implement this feature? |
Since the CodeMirror editor expects to handle a full Beancount file, it wouldn't work for just the narration part without some further modifications. So the first option is probably more feasible - using Maybe the input for the filter input in the top right could serve as an example as it supports completion of tags and links and also handles replacing the right part of the input on completion selection using the valueExtractor and valueSelector functions (https://github.com/beancount/fava/blob/main/frontend/src/sidebar/FilterForm.svelte). |
Hi,
is it possible to display suggestions when typing in the "Narration" field in the Add popup?
Like start typing
#sal
and it'd suggest#salary
tag.Auto-completion works on any other field but that one.
It'd especially useful on mobile, for now I'm forced to use the editor which can be problematic.
The text was updated successfully, but these errors were encountered: