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

Implement CTRL+F to work as a browser-like search in the desktop app #399

Closed
jasonblais opened this issue Dec 18, 2016 · 9 comments
Closed

Comments

@jasonblais
Copy link
Contributor

One key missing piece in the desktop app user experience is CTRL+F browser-like search.

There is existing electron APIs for finding something on the page: http://electron.atom.io/docs/api/web-contents/#contentsfindinpagetext-options

Wondering if someone in the community was interested looking at implementing this feature?

@LeiHao0
Copy link

LeiHao0 commented Feb 23, 2017

It's weird no one complains about 'cmd + f' can't focus on search bar on Mac.

@jasonblais
Copy link
Contributor Author

jasonblais commented Feb 23, 2017

Hey @Artwalk,

We want it to reserve CTRL/CMD+F on the desktop app for browser-like search so the experience would be consistent with the webapp.

I understand that you feel we removed functionality in this release, which is why we're considering to add a shortcut for the webapp (which would also work on the desktop app) that sets focus on the search bar.

Curious to hear if you'd have any suggestions on a good shortcut for this? Perhaps CTRL+SHIFT+S (since CTRL+S performs a save action, and CTRL+F performs find on the webapp)?

@LeiHao0
Copy link

LeiHao0 commented Feb 24, 2017

Oh, I see, consistent experience. the shortcut should be CTRL/CMD+SHIFT+F, then CTRL/CMD+F to work as a browser-like search.

But would you think that CTRL/CMD+F has a universal meaning which is 'find in apps'. You see, Xcode, iTerm, Sublime.

If search was bound to other keys, users would get frustrated when they are going to search by pressing CTRL/CMD+F subconsciously. After all when they chose to use desktop app rather than webapp, they expect this already. Say, Safari/Chrome, CTRL+F of course search in browser(app), Mattermost, CTRL+F search in Mattermost(app).

As for Slack, they provide this in webapp:

Cmd + F starts a Slack search
Overrides normal browser search behavior

I'm not sure which experience is better.

@jasonblais
Copy link
Contributor Author

You raise very good points here.

It's true Slack overrides the normal browser behaviour, but that might be because findInPage was only available on Electron a year ago. So at the time when the feature was added there might not have been an easy way to add browser-like search for CTRL+F.

Good suggestion about CTRL+SHIFT+F a well. One other option for that is to view flagged posts as well :)

@jasonblais jasonblais changed the title Implement CTRL+F to work as a browser-like search in the desktop app [Help Wanted] Implement CTRL+F to work as a browser-like search in the desktop app Feb 26, 2017
@jasonblais jasonblais changed the title [Help Wanted] Implement CTRL+F to work as a browser-like search in the desktop app Implement CTRL+F to work as a browser-like search in the desktop app Mar 22, 2017
@jasonblais jasonblais added this to the v3.9.0/3.10.0 milestone Mar 22, 2017
@jasonblais jasonblais modified the milestones: v3.9.0, v3.8.0 May 12, 2017
@jasonblais jasonblais removed the Hacktoberfest null label Nov 3, 2017
@fermulator
Copy link

fermulator commented Feb 23, 2018

Whatever we decide as the default, we should make it per-user configurable in their account settings. (probably needs a new "Keyboard Shortcuts" section in the "Account Settings"? - I realize now keyboard shortcuts are not configurable, and statically listed under TRIPLE_BAR -> "Keyboard Shortcuts" (or shown by CTRL+/). - maybe be out of scope ...

My initial opinion (which seemed so obvious at the time), was that the default should be CTRL+F. However I understand the concern for a seamless (consistent) experience between the user experience in a web browser, vs. the desktop application.

CTRL+SHIFT+F is a reasonable compromise (however as already stated it may conflict with displaying flagged posts as a future key-map...).

  • "F" = legacy means "find", but Mattermost labels as "Search"
  • "F" may also mean "flag"
  • "S" may map to search (but this is not intuitive to legacy computer users -- many systems use "F")

To argue against the concern (devil's advocate), who cares about consistency? IMO, for users running Mattermost within a web browser, it is acceptable that they MAY have a degraded experience when it comes to desktop interactions and other conveniences. Running the raw desktop application has numerous benefits, and is worthwhile. Accessing MM within a browser is convenient, but shouldn't be considered a permanent or fully capable use case.

Also realizing ... my interpretation of the goal here may be entirely mis-understood. I was thinking of a keyboard shortcut to dump the user's cursor into the existing "Search" box in the Mattermost UI! - the original request clearly talks about a "find on page" type functionality analogous to web browsers.

@jasonblais
Copy link
Contributor Author

@fermulator Thanks for the input! Much appreciated.

And yes, there are two kinds of "searches" discussed here, one for "finding on page", and the second for "setting focus on the Search box".

We actually had the second implemented as CTRL+S shortcut, but people were confused about it and we eventually deprecated it.

As for using CTRL+F as a shortcut for one of the two options: we have lots of users who switch between desktop app and browser, so having a consistent experience is important - particularly for CTRL+F which tends to be used quite often.

All that being said, further feedback is welcome :) I also like the user-configurable option, as people are used to different shortcuts and it would be nice to be able to set them exactly how you want.

@amyblais amyblais removed this from the v4.1.0 milestone Mar 21, 2018
@jasonblais
Copy link
Contributor Author

Platform team helping with this feature.

@mcallaghan-sandvine
Copy link

In #836, it looks like (someone?) decided to go with CTRL|CMD+F

@yuya-oc
Copy link
Contributor

yuya-oc commented Aug 1, 2018

Closed via #836

@yuya-oc yuya-oc closed this as completed Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants