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

The forced use of the option markup-rows makes it impossible to search for the symbol '<' #103

Closed
chmduquesne opened this issue Nov 9, 2021 · 4 comments

Comments

@chmduquesne
Copy link
Contributor

Hi,

I use rofimoji with custom files, because I like to customize the "shortcuts". For example, instead of using superscripts_and_subscripts.csv, I am using my own version, where

₁ Subscript One

becomes

₁ _1

The reason for this is that I find it orders of magnitude more intuitive to look for _1 than Subscript One. For similar reasons, I also defined shortcuts to mathematical symbols to their latex equivalent.

I would love to use a similar approach to look for symbols like ← or →, and type text like <- or -> to look for arrows. However, because the option markup-rows is used, rofi does not let me look for the symbol <.

I would like to suggest to make the use of this option optional, in order to make the search more user friendly. I personally don't care too much for the <small></small> style which often accompanies the description, so I would edit my files to remove this styling, because it makes searching much easier.

Cheers,
Christophe-Marie

@chmduquesne
Copy link
Contributor Author

So, to summarize the issue:

I would like to change the text description of arrow characters to

← <-
→ ->
⇐ <=
⇒ =>

because it is easier to remember and faster than searching for "leftwards arrow". Currently, because rofi tries to show text as markup, it ignores the characters < and > in the search, which makes using such descriptions impossible. I am open to any solution.

Cheers,
Christophe-Marie

@fdw
Copy link
Owner

fdw commented Nov 18, 2021

I haven't forgotten this issue, it's just that I see no real solution (so far). I like the styled descriptions to reduce the clutter of the keywords a bit. However, there seems to be no way to have both that and having > searchable in rofi.

Maybe some trickery to do away with -markup-rows if the items do not contain tags?

@fdw
Copy link
Owner

fdw commented Dec 12, 2021

I think I finally found a solution for you, @chmduquesne: Can you please try to escape the angle brackets with &lt and &gt? This seems to work for me 🙂

@chmduquesne
Copy link
Contributor Author

It works! Fantastic 😊

@fdw fdw closed this as completed Dec 13, 2021
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

2 participants