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

Allow for "+" wildcard in search expression #751

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Kowalevskaja
Copy link

@Kowalevskaja Kowalevskaja commented Jan 27, 2024

Dear Thomas

Many thanks for your great MQTT-Explorer! I added support for the "+" wildcard in search expressions.
Moreover, if the search expression contains a "+" wildcard the corresponding topic levels are grouped under a single node (re-)named to "+". For example, if there are messages available under the following topics:

  • a/GUID-1/x/y
  • a/GUID-1/u/v
  • a/GUID-2/u/w
    and the search expression is "a/+/" the displayed tree becomes
a ¬
   + ¬
      x ¬
      |  y
      u ¬
         v
         w.

Would love to see this feature merged into a future release. Parts of it might also contribute to issue #69.

Greets Georg

P.S. By the way, what are your plans for this project? Any chances you return? Any chances you release it under a more community friendly license?

…ression by

  "+" in topic tree.
Watchout, the search expression changed to be case sensitive.
  This has been carefully considered. The internal switch to regular expressions
  and the use of that expression for the replacement in the topic tree has led
  to two options
  a) entering a search expression leads to a topic tree with all text lower cased
     (independent of the casing in the search expression)
  b) making the search expression case sensitive. Replacement does not change
     casing of original topics.
  Since MQTT-Topics are case sensitive themselves, option b) has been chosen.
@bj00rn
Copy link
Collaborator

bj00rn commented Apr 2, 2024

@Kowalevskaja could you rebase this PR on master please, and give it some testing and ill try to get it merged.

Thanks

@Kowalevskaja
Copy link
Author

@bj00rn, happy to hear the project is alife. I rebased my pull request. Using the "+" wildcard in the search bar works as intended.

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

Successfully merging this pull request may close these issues.

2 participants