#!/usr/bin/env zsh
emulate zsh -o extended_glob
if [[ $1 == (#b)([^:]##):([0-9]##):* ]]; then
[[ -z $EDITOR ]] && EDITOR=mcedit
$EDITOR +$match[2] **/$match[1];t
fi
SOME_VAR'? Notice
and ', whose basically, apparently block any way of quoting the text, e.g.: !sh -c 'ls "%(text)"' will not work, nor will !sh -c "ls '%(text)'". So, is there a way to properly pass such %(text) to a sh command?
External commands:
I @sh -c "echo -n %(commit) | xclip -selection c"
/
search only takes the commits message into consideration, and when the diffview is open only the content of the diff of that specific commit is searched. Instead I would like to find the most recent commit that touched a variable called rare_banana
. Can this be done in tig?
git log -G bananaramamama | tig
and press q
, the tig window will close, but the process will stay alive and hence not give you back the prompt. You can kill it with ctrl-c
git log | tig
as an alternative way of starting tig? so That git log -S banana | tig
could work, for example?