philj56 / tofi

Tiny dynamic menu for Wayland
MIT License
902 stars 39 forks source link

Taking input using Tofi #154

Open rik1599 opened 8 months ago

rik1599 commented 8 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 8 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"