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

Usability: Remember repository #513

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

Usability: Remember repository #513

Zeioth opened this issue Oct 22, 2015 · 5 comments

Comments

@Zeioth
Copy link
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 Enchancement: Remember repository Usability: Remember repository Oct 22, 2015
@davvid
Copy link
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
Copy link
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
Related-to: git-cola#513

Signed-off-by: David Aguilar <davvid@gmail.com>
davvid added a commit to davvid/git-cola that referenced this issue Oct 23, 2015
Related-to: git-cola#513

Signed-off-by: David Aguilar <davvid@gmail.com>
davvid added a commit to davvid/git-cola that referenced this issue Oct 23, 2015
Related-to: git-cola#513
Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid closed this as completed in 9f3c3d7 Oct 24, 2015
@Zeioth
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants