philj56 / tofi

Tiny dynamic menu for Wayland
MIT License
922 stars 40 forks source link

Taking input using Tofi #154

Open rik1599 opened 9 months ago

rik1599 commented 9 months ago

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

Je12emy commented 9 months ago

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

Example:

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