-
Hello. It's possible to declare somehow a "decorative" column to document each row in the listview? I.e: A non selectable column not producing any output and not getting selected when input matches text on this column. If not, it would be too difficult to add such a feature to rofi? Something like.. echo "ls;Use this one to list files!!|ps;This one lists processes!!" | rofi -dmenu -sep '|' -decorative-column-separator ';' It's for web browser search engines, ideally each row has to be a pair of |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
you can make elements you cannot 'accept' (press return), it is not possible to have them 'unselectable' as in you cannot highlight them.. this in current design is not possible. would this not work well enough for the above example? echo -en 'ls\n<i>Use this one to list files!!</i>|ps\n<i>This one lists processes!!</i>' | rofi -dmenu -sep '|' -eh 2 -markup-rows -no-config |
Beta Was this translation helpful? Give feedback.
-
The auxiliary line
Since this is for pairs of short keys (this is what the user needs) and long urls (doc only) i'm afraid that user input will always match and highlight irrelevant rows based on urls rather than keys ("gm", "https://mail.google.com/mail/u/0/#search/{}")
("gh.rofi", "https://github.com/search?q=repo%3Adavatorium%2Frofi+{}&type=issues")
... But I'll try to see how it wors. Thanks for the comment and for Rofi! Amazing tool. If there is any other possible solution would love to hear about it, I'm working on something that may be of public interest. |
Beta Was this translation helpful? Give feedback.
-
Adding
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:
|
Beta Was this translation helpful? Give feedback.
-
Did you check the manpage? https://davatorium.github.io/rofi/1.7.5/rofi-script.5/ in the next release some extra features are coming that might help you: |
Beta Was this translation helpful? Give feedback.
-
I knew of script mode but my use case was fairly simple originally. But it worked so well, it's growing serious now and script mode might be the way to go. Look at this beauty! It's a rofi interface for qutebrowser. The code is pretty simple and there is no lag in calling |
Beta Was this translation helpful? Give feedback.
Adding
-matching regex -filter "^"
to your snippet solves the problem.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:
^__special_placeholder__
ps
^ps