tofi icon indicating copy to clipboard operation
tofi copied to clipboard

Taking input using Tofi

Open rik1599 opened this issue 1 year ago • 1 comments

In dmenu (and his substitutes like wofi), it is possible to use the prompt as input.

It seems that in tofi this modality is not possible (if there isn't any choices the Enter key not works). It is very strange considering that tofi supports hidden prompts. Tofi version 0.8.1 on Debian 12.5

rik1599 avatar Feb 24 '24 00:02 rik1599

See: https://github.com/philj56/tofi/issues/98

Example:

#! /bin/bash
title=$(echo "" | tofi --prompt-text="Note Title: " --require-match=false)
echo "output: $title"

Je12emy avatar Feb 28 '24 03:02 Je12emy