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

Add support for opening counsel-git-grep in other window #3044

Merged

Conversation

flooose
Copy link
Contributor

@flooose flooose commented Apr 25, 2024

Adds functionality described in related issue

Copy link
Collaborator

@basil-conto basil-conto left a 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.

counsel.el Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
@basil-conto basil-conto added the waiting-for-ca Waiting for author's copyright assignment label Apr 27, 2024
@flooose flooose requested a review from basil-conto April 29, 2024 21:12
Copy link
Collaborator

@basil-conto basil-conto left a 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 Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
counsel.el Outdated Show resolved Hide resolved
basil-conto added a commit to flooose/swiper that referenced this pull request May 12, 2024
* 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).
@flooose
Copy link
Contributor Author

flooose commented Jun 13, 2024

Heyhey, my copyright assignment just got in. What do next steps look like? Do you need a copy of the document?

@basil-conto
Copy link
Collaborator

Heyhey, my copyright assignment just got in.

Excellent! 🎉

What do next steps look like?

I'll merge this as soon as I get a chance over the coming days :).

Do you need a copy of the document?

No need, I was already CCed in the email from the copyright clerk.

@basil-conto basil-conto removed the waiting-for-ca Waiting for author's copyright assignment label Jun 14, 2024
@xuhdev
Copy link
Contributor

xuhdev commented Dec 28, 2024

@basil-conto Is this ready to be merged :)

basil-conto added a commit to flooose/swiper that referenced this pull request Jan 9, 2025
* 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).
@basil-conto basil-conto force-pushed the flooose/counsel-git-grep-other-window branch from 058cb3a to fbc4b89 Compare January 9, 2025 11:06
@basil-conto
Copy link
Collaborator

Is this ready to be merged :)

Of course, thank you for the reminder! And sorry about the long delay :(.

flooose and others added 3 commits January 9, 2025 12:15
* 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).
@basil-conto basil-conto force-pushed the flooose/counsel-git-grep-other-window branch from fbc4b89 to 2393ed2 Compare January 9, 2025 11:18
@basil-conto basil-conto merged commit 2393ed2 into abo-abo:master Jan 9, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants