Repository navigation
persist repository filter text in app state after closing repository list - #2571
Conversation
d3d2328 to
358b5df
Compare
joshaber
left a comment
There was a problem hiding this comment.
I'm into making the filter text a prop from an API design perspective, but I'm not 100% sold on making the repository filter text persist.
Speaking entirely for myself, when I cmd-T, it's to switch repositories. Keeping the filtered text is kinda the opposite of what I want. /cc @desktop/design
| return | ||
| } | ||
|
|
||
| if (this.props.onFilterKeyDown) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Wouldn’t you then start filtering the list again, resetting the search? |
|
@joshaber please see my reasoning in #2451 The current behaviour, is exactly what I don't want. I know that the repository categorisation etc. is not on the roadmap, so I thought of minimal changes that would make my life easier (I really have a lot of repos to manage and having to type the filter every single time I want to switch between "client" and "server" repo's of the same project which happens 20+ times per day is really annoying). This was one of the suggestions, and I would really like to see it implemented. Is it possible to have a setting for it so that we can toggle the behaviour? Or how about after CMD-T the focus is put on the filter text and the current text is selected? That won't slow you down if you want to type something else, yet will make it easier for me by having the current filter persisted. |
This seems like a reasonable compromise between the different workflows discussed above. I would prefer this approach over a settings approach. |
|
Yup, I like that too 👍 💯 |
|
🍎 |
|
Awesome guys, can't wait to try this out! |
A discussion in #2451 about making the repository list more friendly lead to spiking out what it would take to make the filter text in
FilterLista prop rather than internal state.This means we can move the repository list filter text into the application state and persist it between closing and reopening the repository list. The branches view also uses this component, but as we haven't discussed making this more persistent I've just moved the state up a level to retain that behaviour.
cc @adamreisnz