When I do a search bindkey in the zsh plugins directory for key conflicts I get responses from both the .zsh script files and .md files, and some of the zsh readme files use a double quote in the bindkey statement.
How would I do a search for bindkeys using both ' and " for quoting? For instance if search for usage of Ctrl-R the first command using double quotes for the matching string produces the README.md of zsh-navigation-tools and single quotes produces the bindkey command for both vi-mode and zsh-navigation-tools
grep -r -i 'bindkey "^r' ~/.oh-my-zsh/plugins output:
zsh-navigation-tools/README.md: bindkey "^R" znt-history-widget grep -r -i "bindkey '^r" ~/.oh-my-zsh/plugins output:
vi-mode/vi-mode.plugin.zsh:bindkey '^r' history-incremental-search-backward zsh-navigation-tools/zsh-navigation-tools.plugin.zsh:bindkey '^R' znt-history-widget How can I create the command that will output all 3?
Does grep have the option of specifying an alternate quoting character that will allow both ' and " as literals?
"bindkey ['\"]^r"