After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760066 - Add keyboard shortcut to go to user's location
Add keyboard shortcut to go to user's location
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: map view
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-02 10:19 UTC by Karanbir Chahal
Modified: 2016-01-05 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds shortcut for user's current location (1.78 KB, patch)
2016-01-02 10:31 UTC, Karanbir Chahal
none Details | Review
Screenshot of above patch (104.80 KB, image/png)
2016-01-02 10:33 UTC, Karanbir Chahal
  Details
Revised Patch (1.73 KB, patch)
2016-01-02 12:11 UTC, Karanbir Chahal
none Details | Review
corrections made (1.60 KB, patch)
2016-01-05 03:06 UTC, Karanbir Chahal
none Details | Review
Screenshot (700.58 KB, image/png)
2016-01-05 03:08 UTC, Karanbir Chahal
  Details
Patch (1.60 KB, patch)
2016-01-05 16:12 UTC, Karanbir Chahal
committed Details | Review

Description Karanbir Chahal 2016-01-02 10:19:28 UTC
This bug was opened as there is no shortcut currently for going to the user's current location .
The accel could be Primary + L or something along those lines
Comment 1 Karanbir Chahal 2016-01-02 10:31:26 UTC
Created attachment 318153 [details] [review]
Adds shortcut for user's current location
Comment 2 Karanbir Chahal 2016-01-02 10:33:06 UTC
Created attachment 318154 [details]
Screenshot of above patch
Comment 3 Jonas Danielsson 2016-01-02 11:27:50 UTC
Review of attachment 318153 [details] [review]:

Thanks Karanbir!

Please mind the length of the commit body!
Follow this guide:
https://wiki.gnome.org/Git/CommitMessages

::: data/ui/help-overlay.ui
@@ +34,3 @@
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
+                <property name="title" translatable="yes">Go to user's current location</property>

So two things!

1) It will be "the user" that is reading this, right?
So just "Go to current location" makes more sense.

2) I think this belong under the Map View category, since it is an action that affects the map view.
Comment 4 Karanbir Chahal 2016-01-02 12:11:44 UTC
Created attachment 318159 [details] [review]
Revised Patch
Comment 5 Jonas Danielsson 2016-01-04 13:58:57 UTC
Review of attachment 318159 [details] [review]:

Thanks!

Please no '&' in the commit message. You can split the body to two sentences and two lines.

::: data/ui/help-overlay.ui
@@ +40,3 @@
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>

This is still under the general bindings, right? I think this should be under Map View, do you not agree?
Comment 6 Jonas Danielsson 2016-01-04 13:59:37 UTC
Also a guide to work with bugzilla and git easier: 
https://wiki.gnome.org/Projects/GnomeShell/Development/WorkingWithPatches
Comment 7 Karanbir Chahal 2016-01-05 03:06:59 UTC
Created attachment 318233 [details] [review]
corrections made
Comment 8 Karanbir Chahal 2016-01-05 03:08:37 UTC
Created attachment 318234 [details]
Screenshot
Comment 9 Damián Nohales 2016-01-05 13:31:33 UTC
Review of attachment 318233 [details] [review]:

The commit message is mentioning the wrong Bugzilla ticket.

Also, as a sidenote, just some thoughts about the proper shortcut. <Primary>L is usually a shortcut to focus the location bar in Files and URL bar in Web, so maybe <Primary>L should behave the same as <Primary>F. But then I see Apple Maps using <Primary>L to go to current location and Safari also uses <Primary>L to focus the location bar. Personally, I'd like a different shortcut (Ctrl + U or Alt + L). How valid is my opinion or how important is to think too much about this, I don't know :D
Comment 10 Karanbir Chahal 2016-01-05 16:12:58 UTC
Created attachment 318261 [details] [review]
Patch
Comment 11 Karanbir Chahal 2016-01-05 16:13:40 UTC
I changed the bugzilla link.Should I change the accel too?
Comment 12 Damián Nohales 2016-01-05 16:19:11 UTC
(In reply to Karanbir Chahal from comment #11)
> I changed the bugzilla link.Should I change the accel too?

Thanks. No, I think we are fine, that was just a personal opinion. Unless anybody else has anything to say about this, the patch looks good to me.

(Remember to take a look to the links provided by Jonas, mainly for start using git-bz, that's going to save you lot of time.)
Comment 13 Karanbir Chahal 2016-01-05 16:21:16 UTC
ALright.I'm sorry for all the mess.
Comment 14 Jonas Danielsson 2016-01-05 18:36:05 UTC
(In reply to Karanbir Chahal from comment #13)
> ALright.I'm sorry for all the mess.

No need! Thank you for working on this. I think <Primary>L is fine, since Apple Maps seem to use the same.
Comment 16 Jonas Danielsson 2016-01-05 18:43:59 UTC
If you want to keep improving keyboard shortcuts, maybe this can be next:
https://bugzilla.gnome.org/show_bug.cgi?id=759574