feat: lazysecrets list colours names from the theme, with icons
This commit is contained in:
4 files changed
+83
-10
No files matched your search
+8
-2
@@ -144,7 +144,7 @@ and its name, tab-separated. It's what Go to searches, so fzf, or an
|
||||
editor's picker, can search it instead:
|
||||
|
||||
```sh
|
||||
lazysecrets list | fzf --delimiter='\t' --with-nth=3 \
|
||||
lazysecrets list | fzf --ansi --delimiter='\t' --with-nth=3 \
|
||||
--bind 'enter:become(lazysecrets open {1})' \
|
||||
--bind 'ctrl-y:execute-silent(lazysecrets get {1} | pbcopy)'
|
||||
```
|
||||
@@ -156,7 +156,13 @@ Azure or Databricks, for an answer at once. Repos are always read, from
|
||||
disk. What it loads is cached for the TUI too. Lists it can't read are
|
||||
reported on stderr; it stops when the reader goes, after a pick in fzf.
|
||||
|
||||
`--format json` prints an object per line instead, for editor plugins:
|
||||
The name is coloured from your [theme](config.md#theme), with the
|
||||
provider's icon when [icons](config.md#theme) are on (`ui.icons`); fzf
|
||||
shows the colours with `--ansi`. `--color never` leaves them out, for
|
||||
scripts, and `--icons=false` the icons. The link is never coloured.
|
||||
|
||||
`--format json` prints an object per line instead, for editor plugins,
|
||||
without colours or icons:
|
||||
|
||||
```json
|
||||
{"link":"lazysecrets://azure/kv-app-prod.vault.azure.net/secrets/db-password","kind":"secret","provider":"azure","path":["platform-prod","kv-app-prod","db-password"],"account":"alice"}
|
||||
|
||||
Reference in new issue
Block a user