Closed shubham-cpp closed 3 years ago
This might be resolved by the approach described in https://github.com/camspiers/snap/issues/27
@shubham-cpp Can you check?
Ok will look into that this afternoon
Yes will look into this, this afternoon
Yes everything works as expected. Great work 👍🏽 💯.
This might be a future request but assume that I have passed ~/Documents/dotfiles
as cwd. Then in the popup window it could show alacritty/.confile/alacritty.yml
instead of /home/shubham/Documents/dotfiles/alacritty/.config/alacritty.yml
.
I'm using stow for dotfiles management.
We can use this type shell command
fd --type f --hidden . ~/Documents/dotfiles | sed 's#'$HOME'/Documents/dotfiles/##g'
Per #27
"So with ripgrep.file.args you can now search in non-cwd's. The paths will be absolute, but I can work on making that better later."
Yes yes no worry. Its not that imp at the moment. Switched to span completely now
Problem: Create a binding to use snap on custom directory like launching snap on nvim dir Potential Solution:
Issue: I have nvim directory as a symlink(using stow to manage dotfiles), so snap launches my root directory(where all the dotfiles exists) instead of only launching on nvim directory.
Tried: changing
nvim_dir()
But then It gives error that
~/Documents/dotfiles/init.vim
doesn't exists which is right but the problem is that snap is unable to unpack symlinks properly. I also triedsnap.get("producer.fd.general")
and passing--follow
flag for both ripgrep and fd