Repository navigation
|
I want to use The following hack works, let passwordStore = 'find $HOME/.password-store/ -type f | sed "s!$HOME/.password-store/!!;/^\./d;s/\.gpg$//"'
let InsPW = {s -> execute('execute("read!pass show ' . s . '") | execute("normal kdd") | execute("normal :wq\<cr>")')}
nmap <silent> <buffer>
\ <Leader>fp
\ :call fzf#run(fzf#wrap({'source': passwordStore,
\ 'sink': InsPW,
\ 'options': '--no-multi'}))<CR>except that it only works if I have already inserted and cached the gpg password earlier. If I haven't, then I can't insert it via the above command. Notice that if I just enter |
Replies: 4 comments 6 replies
|
not really an fzf thing. easiest fix is a GUI pinentry, it pops its own window no matter where it's called from. in (or pinentry-qt / pinentry-gnome3, whatever you have), then |
|
It works for me. What exactly happens if (when the gpg password is not cached) you make a selection using the following command (assumes no spaces in names) directly in command-line mode? call fzf#run(fzf#wrap({'source': 'pass ls', 'sink': {s -> execute("read!pass show " . fzf#shellescape(s))}, 'options': '--reverse --header-lines=1 --accept-nth=-1'})) |
|
I sincerely apologize for wasting your time, but the issue is due to a detail I was omitting because I thought it was not relevant, and that is that the Vim session is being spawned by the browser via a keybinding which runs the following command that I defined: urxvt -e bash -c vimI've just tried running that command from a terminal (rather than from the browser), and what happens when I call I don't know why that happens, and I'll have to look up and find a solution, but that's truly entirely unrelated to fzf. The original mapping I posted, works just fine. Again, sorry 😢 |
I sincerely apologize for wasting your time, but the issue is due to a detail I was omitting because I thought it was not relevant, and that is that the Vim session is being spawned by the browser via a keybinding which runs the following command that I defined:
I've just tried running that command from a terminal (rather than from the browser), and what happens when I call
:read!pass show path/to/passowordis that the pinentry program opens on the calling terminal, rather than the one where Vim runs. Realistically, when the caller is not a terminal but the browser, there's nowhere to show the pinentry.I don't know why that happens, and I'll have to look up and find …