Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Usability: Remember repository #513
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.
Adjust the command the keyboard shortcut runs to include the
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
Likewise, if the working directory is changed before launching cola then the
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).
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.