Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-input in output, like dmenu #98

Open
0ion9 opened this issue Sep 30, 2017 · 0 comments
Open

User-input in output, like dmenu #98

0ion9 opened this issue Sep 30, 2017 · 0 comments

Comments

@0ion9
Copy link

0ion9 commented Sep 30, 2017

Dmenu does not only allow filtering of the items piped in by typing, but also allows the user to input their own string. This is a useful feature if you want to provide a list of preset items but custom items are also valid.

For example,

printf '%s\n' foo bar | percol and input 'baz'. Percol currently outputs nothing, because no items are matched. A keyboard shortcut that quits and outputs all of the selected items AND the user input as-is, would be helpful. I specify it in that way because then it can be used to simultaneously filter a list and add an item to that list for future invocations to use.

In my mind, such a feature would have to explicitly depend on multiple selection and not on standard filtering-- otherwise, if the number of matches to the user-inputted string was >0, then the output would usually not be what the user intended.

Suggestions for less confusing issue title are welcome ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant