Similar to <leader>* in normal mode, set the search pattern to the visual selection and start a ripgrep search. To not mess up the commandline, potential quotes that are the same as the ones used around the string need to be escaped. As this is only possible with double quotes, a second layer of backslash escaping is needed as well. Because of that, **before** escaping backslashes and double quotes, all backslashes need to be escaped a second time. The other way around would result in two backslashes in front of each double quote, which would miss the whole point entirely. In addition GetVisualSelection needed to be expanded to first reselect the visual selection for it to work in the new mapping.
My dotfiles
This is a collection of the configuration files and scripts I use for various tools and environments.
Although some files support macOS, most of them assume that they are used on a GNU/Linux system. The systems I use include an Artix, a Manjaro and an Ubuntu installation. All of them running i3wm and the arch-based systems without a DE. I use my fork of st as terminal, zsh as shell and neovim as text editor.
The repository mimics my $HOME, trying to conform to the XDG Base Directory
Specification as close as possible. An exception is etc/ -> /etc/, as well
as meta/ and some other files in the root of the repository (e.g. this README
or the LICENSE) which are not in my $HOME.
The most interesting files are probably in .config/zsh and .config/vim.
Installation
The repository content can be installed via dotbot. All existing files which would be overridden are first packed into an archive for backup (see meta/archive) and then dotbot places symlinks in the appropriate places for the different files and folders in this repository.
To start the installation run:
$ ./meta/install