If you don't have git installed, using M-p from counsel-find-file raises a user-error #1216
Comments
I am currently working around this by adding this to my
(I have git on some but not all the computers I use Emacs on.) |
Thanks, I added something similar to your workaround for counsel.el. |
Looks perfect, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a computer where I don´t have git installed, every time I try to use
M-p
fromcounsel-find-file
(which runsivy-previous-history-element
) I get an error message that says 'Required program "git" not found in your path'.The reason this message occurs is that
counsel
addscounsel-emacs-url-p
andcounsel-github-url-p
to the variableivy-ffap-url-functions
which is used byivy--cd-maybe
. Those functions usecounsel-require-program
to check that git is installed and produce an error message if it is not.Is this really the best way to handle this? I'd prefer to have
counsel-emacs-url-p
andcounsel-github-url-p
just silently returnnil
if the use doesn't have git, rather than see an error message every time I try to use the history incounsel-find-file
. Or maybe havecounsel
check for git before puttingcounsel-emacs-url-p
andcounsel-github-url-p
inivy-ffap-url-functions
. The point is a gitless person should just not get the extra functionality instead of being constantly scolded. :PThe text was updated successfully, but these errors were encountered: