feat: a link brings back the lazysecrets nvim hid; Azure shows its account
- In nvim, lazysecrets asks lazysecrets.nvim whether its window is shown: a hidden one is brought back for a link, unless nvim is busy (typing, a command, a picker, mid-operator), when the link opens elsewhere. Without an answer (an older plugin), nothing changes. - The Azure group is named for its account, Azure · alice, also with a single account; its ID, and so stars and cache, stay as they were.
This commit is contained in:
1 parent
677bba4c4a
commit
98c0d7f176
7 files changed
+128
-8
No files matched your search
@@ -123,6 +123,9 @@ func (s *Server) handle(c net.Conn) {
|
||||
switch req.Op {
|
||||
case "status":
|
||||
_, app, reach := place(req.Front)
|
||||
if nvimState(context.Background()) == "busy" {
|
||||
reach = unreachable // a link would interrupt you: it opens elsewhere
|
||||
}
|
||||
s.mu.Lock()
|
||||
resp.Status = Status{PID: os.Getpid(), LastActive: s.active, Reach: reach, App: app}
|
||||
s.mu.Unlock()
|
||||
|
||||
Reference in new issue
Block a user