-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
counsel.el: Add directory change support to counsel-git #2750
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, see some comments below.
counsel.el
Outdated
(defvar counsel-git-map | ||
(let ((map (make-sparse-keymap))) | ||
(define-key map (kbd "C-x C-d") 'counsel-cd) | ||
map)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: please always include a docstring.
* counsel-git-map: Add keymap for counsel-git * counsel-git-cmd: Adjusted command to remove --full-name * counsel-git: Allow optional initial directory and configure keymap
b2358d0
to
8428a6d
Compare
Thanks @basil-conto, I have now added a docstring to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
I'm not sure whether I can merge this without a copyright assignment to the FSF, though, given your cumulative changes to this project. Do you have a CA on file already? If not, would you be willing to? If you're unfamiliar with this, see (info "(emacs) Copyright Assignment")
. Thanks.
Fixes #2740.
Adds a keymap for
counsel-git
allowingcounsel-cd
to be invoked. Additionally,counsel-git
has been modified to allow an optional initial directory to be provided (as a result of invokingcounsel-cd
).