summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun <orhun@archlinux.org>2021-07-17 22:54:08 +0300
committerorhun <orhun@archlinux.org>2021-07-17 22:54:08 +0300
commit2dcd41fd23a615afd6e28e5c971400578569fc48 (patch)
tree774ee360ffe1b69f14fb4e06444d9c0e049fa27d
parent916ded721f3d428c946b06a0aee2c9ba8f403560 (diff)
docs: Add an example for selection mode to README.md
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5f236ae..8171e60 100644
--- a/README.md
+++ b/README.md
@@ -526,6 +526,12 @@ gpg-tui --select <option>
![](demo/gpg-tui-selection_mode.gif)
+For example, you can use the following shell function to encrypt a file for the selected recipient (key ID):
+
+```sh
+function encrypt() { gpg -e -r $(gpg-tui --select key_id) "$@"; }
+```
+
#### Detailed View
Press `Tab` to toggle the [detail level](#detail-levels) for the selected entry in the list. Number keys (e.g. `1`, `2`, `3`) can be also used to set a specific level.