You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I didn't find support for git grep stash in magit.
At the moment I feel like that a counsel-git-grep-stash would help to quickly look up stashed notes and temp files. But I havn't decided about a sensible default action yet.
Maybe I should learn how to write a provider for ivy counsel myself.
Does a general recipe for that exist already? What do I have to consider if I just copy and adapt counsel-git-grep for that?
#!/bin/bash
IFS=$'\n'foriin`git stash list --format="%gd"`;do
git stash show -p $i| grep -H --label="$i""$1"done``
The text was updated successfully, but these errors were encountered:
The recipe is to find a similar function and copy it.
What do I have to consider if I just copy and adapt counsel-git-grep for that?
counsel-git-grep is a complex async command, I'd suggest looking at counsel-locate for a simple async command. But in this case, a simple non-async command can suffice - just a combination of ivy-read and shell-command-to-string, see the commit.
But I havn't decided about a sensible default action yet
I added an action that copies a command to apply a stash to the kill ring.
I didn't find support for git grep stash in magit.
At the moment I feel like that a counsel-git-grep-stash would help to quickly look up stashed notes and temp files. But I havn't decided about a sensible default action yet.
Maybe I should learn how to write a provider for ivy counsel myself.
Does a general recipe for that exist already? What do I have to consider if I just copy and adapt counsel-git-grep for that?
The text was updated successfully, but these errors were encountered: