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

Usability: Remember repository #513

Closed
Zeioth opened this Issue Oct 22, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@Zeioth
Contributor

Zeioth commented Oct 22, 2015

Hi, it would be nice to have an option to do not be prompted for which repository do you want to open when you open git-cola, and instead remember the last repository I opened. I have a keyboard short cut for git-cola and it's very annoying to be asked for it every time I open it. Thank you.

Also, when you open git-cola, the last repository you opened should be marked and be opened after press enter.

@Zeioth Zeioth changed the title from Enchancement: Remember repository to Usability: Remember repository Oct 22, 2015

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Oct 23, 2015

Member

Adjust the command the keyboard shortcut runs to include the --repo path/to/worktree argument. and cola will not prompt. cola will start in that worktree.

The default behavior is actually not to prompt when cola finds a git repository in the current working directory. It only prompts when nothing is found, or the --prompt option is specified.

Likewise, if the working directory is changed before launching cola then the --repo option can be omitted. If the shortcut has a working directory option then changing that would also do the trick.

What are you using for the shortcuts stuff? Sounds interesting... If it's mapped to some default system menu item, then it's probably the git-cola.desktop file in /usr/share/applications/. Tweaking that one adjusts the action that's run in the menu launcher, so that might be involved (or not, just guessing).

Member

davvid commented Oct 23, 2015

Adjust the command the keyboard shortcut runs to include the --repo path/to/worktree argument. and cola will not prompt. cola will start in that worktree.

The default behavior is actually not to prompt when cola finds a git repository in the current working directory. It only prompts when nothing is found, or the --prompt option is specified.

Likewise, if the working directory is changed before launching cola then the --repo option can be omitted. If the shortcut has a working directory option then changing that would also do the trick.

What are you using for the shortcuts stuff? Sounds interesting... If it's mapped to some default system menu item, then it's probably the git-cola.desktop file in /usr/share/applications/. Tweaking that one adjusts the action that's run in the menu launcher, so that might be involved (or not, just guessing).

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Oct 23, 2015

Member

That said, I think I just about finished implementing this feature. I can see it being useful to have a way to tell cola to check one last directory before falling back to the prompt dialog.

I've made it so that you can right-click in the Bookmarks widget and set one of the repos to be the "Default Repository". I'm always hesitant to add new features, but if this is useful to others too then I can be persuaded.

I'll push what I have to a "default-repo" branch and we can see what others think.

Member

davvid commented Oct 23, 2015

That said, I think I just about finished implementing this feature. I can see it being useful to have a way to tell cola to check one last directory before falling back to the prompt dialog.

I've made it so that you can right-click in the Bookmarks widget and set one of the repos to be the "Default Repository". I'm always hesitant to add new features, but if this is useful to others too then I can be persuaded.

I'll push what I have to a "default-repo" branch and we can see what others think.

davvid added a commit to davvid/git-cola that referenced this issue Oct 23, 2015

gitcfg: use "git config --unset" when value is None
Related-to: #513

Signed-off-by: David Aguilar <davvid@gmail.com>

davvid added a commit to davvid/git-cola that referenced this issue Oct 23, 2015

icons: add star icon
Related-to: #513

Signed-off-by: David Aguilar <davvid@gmail.com>

davvid added a commit to davvid/git-cola that referenced this issue Oct 23, 2015

cmds: add SetDefaultRepo command
Related-to: #513
Signed-off-by: David Aguilar <davvid@gmail.com>

@davvid davvid closed this in 9f3c3d7 Oct 24, 2015

@Zeioth

This comment has been minimized.

Show comment
Hide comment
@Zeioth

Zeioth Oct 24, 2015

Contributor

It would be great to have the same feature in git-dag in the future. Thank you so much davvid, i think that will do the trick perfectly.

By the way my system shortcuts are:
cmd+A: Open git-cola
cmd+S: Open git-dag

Contributor

Zeioth commented Oct 24, 2015

It would be great to have the same feature in git-dag in the future. Thank you so much davvid, i think that will do the trick perfectly.

By the way my system shortcuts are:
cmd+A: Open git-cola
cmd+S: Open git-dag

@Zeioth

This comment has been minimized.

Show comment
Hide comment
@Zeioth

Zeioth Oct 24, 2015

Contributor

I just installed git-cola from your last commit and i can confirm it, it's a great usability boost, thank you.

Contributor

Zeioth commented Oct 24, 2015

I just installed git-cola from your last commit and i can confirm it, it's a great usability boost, thank you.

@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Oct 25, 2015

Member

dag+cola reuse a lot of code, so it got it for free, they both share this feature. Thanks for testing.

Member

davvid commented Oct 25, 2015

dag+cola reuse a lot of code, so it got it for free, they both share this feature. Thanks for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment