Adding a delimiter for elements
jamez2128 opened this issue · 1 comments
Hi can I add a feature where you can use any character for a delimiter for parsing options aside from using ";"? Even though it is okay for options without any symbols but it is not ideal for some strings that may contains it. It even parses using \n just like how dmenu works originally. You specify the delimiter by using the -element-delimiter.
Examples:
and if -element-delimiter is not specified, it uses a default delimiter.
Note: \n does not work in cmd or in batch scripts and it only works in other shells like powershell or in WSL according to my tests so far.
Hello and thank you for this idea.
I noticed that most of the times on windows we use ;
a lot, for example environment variables.
Among these options as default delimiter:
,
:
-
_
|
I think it's better to stick with ,
since it's a single key press(unlike |
or _
or :
that needs user to press SHIFT on a normal keyboard)
Another thing is that I don't like to accept any char as delimiter. like ~
or ^
.
I prefer a list of clean characters that are familiar for everyone: ,
,;
,
, :
, -
, _
, |
.