diff options
author | orhun <orhun@archlinux.org> | 2021-07-17 22:54:08 +0300 |
---|---|---|
committer | orhun <orhun@archlinux.org> | 2021-07-17 22:54:08 +0300 |
commit | 2dcd41fd23a615afd6e28e5c971400578569fc48 (patch) | |
tree | 774ee360ffe1b69f14fb4e06444d9c0e049fa27d | |
parent | 916ded721f3d428c946b06a0aee2c9ba8f403560 (diff) |
docs: Add an example for selection mode to README.md
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |