-
-
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
Add support for opening counsel-git-grep in other window #3044
Add support for opening counsel-git-grep in other window #3044
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! Works nicely.
See some minor style/logic suggestions below.
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, we're almost there! The only real issue is the use of rx-define
, which is not sufficiently backward compatible (one day we'll bump Counsel's minimum Emacs version, but not today :).
* counsel.el (counsel-git-grep-function): Simplify. (counsel--git-grep-file-and-line-number): Rename... (counsel--git-grep-file-and-line): ...to this, splitting long lines. (counsel--git-grep-go-to-location): Rename... (counsel--git-grep-visit): ...to this, incorporating more DRY. (counsel-git-grep-action, counsel-git-grep-action-other-window): Adapt accordingly (abo-abo#3044).
Heyhey, my copyright assignment just got in. What do next steps look like? Do you need a copy of the document? |
Excellent! 🎉
I'll merge this as soon as I get a chance over the coming days :).
No need, I was already CCed in the email from the copyright clerk. |
@basil-conto Is this ready to be merged :) |
* counsel.el (counsel-git-grep-function): Simplify. (counsel--git-grep-file-and-line-number): Rename... (counsel--git-grep-file-and-line): ...to this, splitting long lines. (counsel--git-grep-go-to-location): Rename... (counsel--git-grep-visit): ...to this, incorporating more DRY. (counsel-git-grep-action, counsel-git-grep-action-other-window): Adapt accordingly (abo-abo#3044).
058cb3a
to
fbc4b89
Compare
Of course, thank you for the reminder! And sorry about the long delay :(. |
* counsel.el (counsel-git-grep-action): Refactor in terms of counsel--git-grep-file-and-line-number and counsel--git-grep-go-to-location. (counsel-git-grep-action-other-window) (counsel--git-grep-file-and-line-number) (counsel--git-grep-go-to-location): New functions. (counsel-git-grep): Set "j" action to counsel-git-grep-action-other-window (abo-abo#3044). Closes abo-abo#3043.
* counsel.el (counsel-git-grep-function): Simplify. (counsel--git-grep-file-and-line-number): Rename... (counsel--git-grep-file-and-line): ...to this, splitting long lines. (counsel--git-grep-go-to-location): Rename... (counsel--git-grep-visit): ...to this, incorporating more DRY. (counsel-git-grep-action, counsel-git-grep-action-other-window): Adapt accordingly (abo-abo#3044).
fbc4b89
to
2393ed2
Compare
Adds functionality described in related issue