hound icon indicating copy to clipboard operation
hound copied to clipboard

Implemented user preferences for setting ignore case and auto hide advanced on search.

Open gwindes opened this issue 9 years ago • 3 comments

gwindes avatar Jun 11 '15 23:06 gwindes

Related to pull request #125

gwindes avatar Jun 11 '15 23:06 gwindes

I really don't think it makes sense to add the complexity of user preferences for a single setting. For one, you can no longer depend on links to searches to be stable. A link for ?q=Println will now not work for some people. I also still don't think that hide advanced makes sense as an option. The core issue is that it was not scaling properly, which was a bug. It's also a thing that we can continue to make better with UI work. I definitely don't want to enable hidden modes in the UI for our own use.

Why don't we start with a server config to change the default for ignore case?

kellegous avatar Jun 12 '15 00:06 kellegous

I initially thought about a server config but decided on the individual user approach due to our case where we have 100+ devs in the company (maybe 25 using our hound instance) and they may not agree on the default. This way each user can customize it to their liking.

Also this preference feature isn't necessarily only for ignore case. Other team members mentioned having a pref for file filters such as excluding .xml files etc

Regarding the link sharing where it's just ?q=Println, on a query hound creates all params, while still possible to only share the query param probably unlikely. However, I agree that should be fixed and could be an easy fix (if no url param for ignoreCase override to 'unchecked'). Unless there is a way to create a query without all the params in the url?

@kellegous does your team typically share hound search links? I haven't come across it here (but that doesn't mean it doesn't happen) and doesn't mean this tweak should break that functionality.

gwindes avatar Jun 12 '15 01:06 gwindes