maks / MGit

A Git client for Android.
https://manichord.com/projects/mgit.html
GNU General Public License v3.0
1.23k stars 166 forks source link

long icon press shortcut #438

Open 532910 opened 5 years ago

532910 commented 5 years ago

Please add support for icon press shortcut https://developer.android.com/guide/topics/ui/shortcuts/

kb-1000 commented 5 years ago

@532910 But what should be displayed as a shortcut?

532910 commented 5 years ago

I imagined the pull action. The clone shortcut may also be there.

kb-1000 commented 5 years ago

This does not make much sense, a "pull" is updating a single repository. While the clone shortcut may be useful, it should IMO rather use dynamic shortcuts to display repositories, not their pull action.

532910 commented 5 years ago

Sure, sorry for bad explanation. I mean pull action for recent repositories.

kb-1000 commented 5 years ago

Still bad IMO, because you might want to open them instead of updating

532910 commented 5 years ago

As for me, the "open" will not the only one action, so I'll open the main screen and navigate to the repository. But for some repositories I'd just like to pull them without opening the app at all.

kb-1000 commented 5 years ago

@maks is it possible to create a context menu of navigation drawer entries?

maks commented 4 years ago

I think this would make sense in the context of having homescreen widgets that were shortcuts to specific local repos.