Skip to content

Decorative-only text with -dmenu? #2009

Answered by cortsf
cortsf asked this question in Q&A
Discussion options

You must be logged in to vote

Adding -matching regex -filter "^" to your snippet solves the problem.

echo -en 'ls\n<i>Use this psone to ps list files!!</i>|ps\n<i>This one lists processes!!</i>' | rofi -dmenu -sep '|' -eh 2 -markup-rows -no-config  -matching regex -filter '^'

My problem is solved already (Thanks @DaveDavenport ) but (just thinking) it would be a nice feature if rofi could wrap "plain" user imput with regexes declared using placeholders or something like that. For this trivial use case it could be something like:

  • Regex template: ^__special_placeholder__
  • User input in rofi: ps
  • String rofi uses under the hood: ^ps

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cortsf
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DaveDavenport
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants