Skip to content

cmd:keepassxc-cli #295

Answered by c-c-k
rod-stuchi asked this question in Q&A
Oct 5, 2024 · 5 comments · 6 replies
Discussion options

You must be logged in to vote

EDIT: @bassamsdata This is a reply to your first reply.

yes.
A slight drawback is that running nvim from a terminal (KDE Konsole in my case) and pressing the KeepassXC autotype shortcut the entry selection window contains all the entries mapped to *Konsole* so it takes a few more keystrokes to filter the API key entry.

For the moment I've solved it by using a KDE KDialog window with a custom title:

local api_key
local get_gemini_api_key = function()
  if not api_key then
    local handle =
      io.popen [[kdialog --password "Please perform KeepassXC autotype for Gemini API key:" --title "nvim codecompanion gemini api_key"]]
    if handle then
      api_key = handle:read("*a"):gsub("\n", ""

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@bassamsdata
Comment options

@bassamsdata
Comment options

@c-c-k
Comment options

Answer selected by olimorris
@c-c-k
Comment options

@bassamsdata
Comment options

@c-c-k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants