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

💡 RFC: Autocomplete feature in the editor #69

Open
isaiahdahl opened this issue Sep 2, 2022 · 1 comment
Open

💡 RFC: Autocomplete feature in the editor #69

isaiahdahl opened this issue Sep 2, 2022 · 1 comment

Comments

@isaiahdahl
Copy link
Collaborator

Background & Motivation

I want to be able to write a chart and have it autocomplete my chords based on the chords already used in the chart.

Or If I'm starting a chart from scratch. I want it to show me the relevant chords in the key I am in.

For example, if the key was C you'd get autocomplete suggestions for Db, D, Eb, E, F, Gb, G, Ab, A, Bb, B

I think this is close to the experience I'd like to see. Except that it would complete if you pressed Tab, and if would put your cursor after the bracket when you hit enter.

CleanShot 2022-09-02 at 14 10 25

Proposed Solution

Possible solutions

Another idea is to have buttons at the Top & or button of the editor that show the same list of chords, You could click those buttons and it would drop a chord where your cursor is.

@bkeepers
Copy link
Contributor

bkeepers commented Sep 2, 2022

The implementation I currently have in Chord Book is really naive but seems to work pretty well. It tracks chords used in the current doc and autocompletes them on ctrl+space or whenever [ is typed.

2022-09-02 17 48 43

I want it to show me the relevant chords in the key I am in.

Love this.

Another idea is to have buttons at the Top & or button of the editor that show the same list of chords, You could click those buttons and it would drop a chord where your cursor is.

I think some kind of toolbar for inserting/formating would be awesome. Maybe a floating toolbar on click/selection like this:

image

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

2 participants