Adds a doDidChangeQuery option when updating query.#27
Adds a doDidChangeQuery option when updating query.#27lexicalunit wants to merge 1 commit intoatom:masterfrom
Conversation
If and only if this option is set to false, the didChangeQuery() callback will NOT trigger after updating the query. This is useful for things like autocompletion or when you'd want to update the query text while bypassing code that recomputes and filters the list items. This is the only change I needed to make to `SelectListView` to fully implement autocompletion (see atom#12) on top of `atom-select-list`.
ca95142 to
20a530a
Compare
|
I'm not sure I understand what the driver is here. I've looked at the issue and I'm not sure if this is the only way to solve this problem. Can you give some more details as to whether this is a problem you're seeing in the way this is being used in Atom or if this is only being used in this way in one of your own packages? Thanks for the submission and I'm looking forward to hearing more 😀 |
|
Hey @lee-dohm. Thanks for the questions! So yah, I'd really like to use So I forked A question I have: Do you intend |
|
My personal feeling is that it should be a reusable component. But I'll have to see how the rest of the maintainer team feels about it. I've tagged this for review in our next weekly meeting and I'll get back to you. Thanks for the detailed explanation, it's a big help 🙇 |
|
@daviwil Can you take a look at the change here and specifically the naming convention established? |
If and only if this option is set to false, the didChangeQuery()
callback will NOT trigger after updating the query. This is useful for
things like autocompletion or when you'd want to update the query text
while bypassing code that recomputes and filters the list items.
This is the only change I needed to make to
SelectListViewto fullyimplement autocompletion (see #12) on top of
atom-select-list.